Biggest mistakes are on flop and turn imo.
Flop: Why flat call his check-raise? If u think he has two pair as well, then ur decision should be to shove or fold (depending on which u put him on), since ur drawing slim after this street. If you think he has a pair/draw combo, ur even money and a shove gives u fold
equity (also, again ur hand is not likely to improve). If u think he has a set or straight, easy fold. Shove or fold, no call.
Turn: He's leading out after check-raising. He is now representing a straight, set, or monster draw. Your hand doesn't beat most of those and is still not likely to get better. Let it go...