How do I be hard on myself the RIGHT way?

I am trying so hard to not let up on myself. I am never satisfied with anything I do. I end up getting “depressed” and lazy because I hate myself so much. I know I have to be hard on myself to succeed. What the hell am I doing wrong?