You will rise and fall hundreds and thousands of times before you merit to serve God perfectly. The greatest tzadikim have also endured all this. The most important thing is your determination. Let nothing in the world distract you. Never go slack. Only serve God, whatever happens. The main thing is never to despair.
You should always make a fresh beginning as if you have never begun before in your life. Start serving God now as if this is the very first time. Even in the course of a single day, you may have to start all over again from the beginning any number of times. ~ R’ Nachman of Breslov zt”l