How do you handle a toxic coworker who nitpicks and sabotages your work?

This coworker is always downing me on how I do my job. He always has something to say. One day I was replacing a fence post and after I finished he came over and ripped it out and placed it back in the same spot. He acts like he Mr. Perfection. He’s one of those brown nosers that kisses the boss’s butt. It’s getting annoying now. Like basically I can’t do anything right at work.
How do you handle a toxic coworker who nitpicks and sabotages your work?
Post Opinion