You just overvalued your hand, you only have 1 pair. Preflop, fine, nothing extremely out of the ordinary there. Having the villain check-call a pot sized bet on the flop should send out alarms. The pot-sized bet is a little much anyway. He is going to fold many of the same hands with a 1/2 to 3/5's pot bet as he would to a pot sized, but you sacrificed more of your stack when you didn't have to. The pot sized bet on the turn is just blood money, you never should have bet there after the flat call from villain, and depending on pot odds
, shouldn't have called the all-in.
If you push preflop he would/should obviously fold, but that would be the wrong move unless you're shorty