Lots of conflicting advice on this one.
Here are my thoughts and everyone can tell me where I go wrong if anywhere.
At a $25 table, I wouldn't think he is 4 betting with anything other than AA, KK, AKs, or AKo (maybe QQ or JJ - you obviously have a QQ yourself, so I'm going to take that out as unlikely). 99% of the time everyone just calls the 3B. So presumably your call is hoping neither an A, K, J, or a suit match to his possible AKs appear on the flop
and that he has the AKs, AKo, or JJ. Chances that you will flop a set are obviously not good. With position, I would think a call is ok, but folding is probably the best decision unless you think he is picking up a pattern of yours and just 4betting to get you to fold. Going all-in preflop seems to me to be at best a coin toss and reckless.
With the flop it was great that it was rainbow and A or K didn't show up, but the Jack hurts you. Now, you only beat AKs or AKo, but lose to AA, KK, and JJ. Calling a pot-sized bet doesn't seem profitable to me. You are not likely going to improve. If he bets on the turn, you would almost certainly fold. You got the best situation of him checking through the river,
.