So i was in this situation and i think i did the right thing but i got hassled by the rest of the table which made me question myself. Still i know i did the right thing. Do you think im playing to tight?

So im playin 1/2 nl at riverrock in richmond and i get dealt AK os in the large blind. It goes around the table and 6 callers. It comes to me and i raise 17 dollars. Everyone folds but the one guy who raises all in which is a total of 95 dollars. I have a read on this guy and he raises all in with a pocket pair. Not a very good player but been getting lucking. I have a stack of 200 and i fold my AK. He flips over his cards and hes got a pair of nines.

I figure there is no piont in riskin my stack and getting involved in marginal, besides hes pushing with pocket pairs. Any which way it will be a coin flip and i fugire i dont'want to get involved in that. What to you guys think?