One of the Saints taught that there are three reasons why people follow the commandments of God. The first, and lowest reason, is out of fear of hell and punishment. The second reason is to enter the Kingdom of Heaven when the time comes. And the third, and greatest reason, is purely out of love for God. That is the way of the Saints.
Nevertheless, although one is greater than another, we sinners should be struggling for all those reasons.
Thus, we can understand why one Saint (I think St. Silouan) said: “keep your mind in hell, yet despair not”. In other words, we should be battling with the thought that we may lose our salvation and be separated from God on account of our sins, because that (in appropriate doses) stirs us to remain attentive and continue to fight the good fight. But that should not be to a degree of leading us to despair.
To repentance? Certainly! But not to despondency and depression, as if we have no hope.
For this reason, it is important to have an experienced spiritual father for guidance.