when your were on the flop you have two options:
2.set a trap
Like most poker books
say you raise so that you dont get traped like what happened above. However, im not discluding this strategy as it works well against aggressive players.
I would recommend or Dan Harrington Book recommends to
"Raise 85% and call 15%(to set a trap)"
My question to you would be is this a known aggressive player or was this just a new player you meet or what? If you can give me this details it would help me figure out what would have been the best decision.