It’s important to both give yourself credit for the good choices you make and not berate yourself when you make a mistake. When you beat yourself up, the only thing it does is demoralize you further and makes it harder to get back on track. When you give yourself credit, it makes you feel great, helps raise your confidence, makes it easier to keep doing what you're doing, and gives you motivation to stay on track.