25nl 6max

I don't know much about the opponent and I don't have the handhistory since I'm not at home right now.

I raise 3bb in early position with QQ and get on caller in late position.

Flop comes 245 rainbow.

I bet something like 1.25 he reraises to 5. I reraise again and we end up all-in. He has 44 for a set.

Could I get away from this situation at all? If not could I get away cheaper? How about calling his reraise on the flop and check/fold the turn? Lead out again on turn after calling flop? Am I just doomed in this situation?

On the other hand, this time he had a set but there where plenty of hands I could beat that he would call preflop and reraise with postflop.