NL poker 2/4

I have AK and then the flops comes:

A10K(heart/daimond/clubs)

I raise he reraise it. I call.
Then a 10 of daimonds comes.
i just check being afraid of straight and he makes a small raise of 20dollar. i call.
then a J of Daimonds comes. that was a bad beat. Now there are straight and flush draws. He makes a very high bet of 150 dollar. after long thinking i fold this one. Did i play this hand right or wasnt i aggresieve enough? How can i play this hand good in the future please tell me give me tips.