I honestly think I bet the flop a large percentage of the time here to try to build a pot, but checking back is fine since its marginal top pair. I guess you're raising the turn against KQ KT AQ AT hands like those, I think its decent. When you overbet the river though, and he shoves he has a straight plus. Just fold your lower two pair here.