Practice staying positive not being perfect!
No one is perfect. If you force yourself to being perfect I believe you will relapse harder. When you relapse your attitude may be... I screwed up today, might as well finish it up and start back tomorrow. This may also cause you to beat yourself up. Stay positive no matter what you do.