You will not perish on account of thoughts with which you do not sympathize and from which you at least try to be freed. Only repent, & humble yourself. And God will forgive you.
The closet of the soul is the body; our doors are the five bodily senses. The soul enters its closet when the mind does not wander hither and thither, roaming among things and affairs of the world, but stays within, in our heart. Our senses become closed and remain closed when we do not let them be attached to external sensory things, and in this way our mind remains free from every worldly attachment, and by secret mental prayer unites with God its Father. 'And thy Father which seeth in secret shall reward thee openly,' adds the Lord. God who knows all secret things sees mental prayer and rewards it openly with great gifts. For that prayer is true and perfect which fills the soul with Divine grace and spiritual gifts.
First, one prays with the simplicity typical of beginners and by shedding copious tears. All this is due to the grace of God which is called purifying grace, which catches us like a fish-hook, and guides us towards repentance. For it is our God, Who is good in all and to all, Who finds us. He sees us. He invites Himself known to us first. Then we get to know Him, after He anoints us with His divine mercy. Hence, repentance, mourning, tears, and everything that happens to someone who repents, is all due to divine grace. This is purifying grace which cleanses man.
It is more serious to lose hope than to sin. The traitor Judas was a defeatist, inexperienced in spiritual warfare; as a result he was reduced to despair by the enemy's onslaught, and he went and hanged himself. Peter, on the other hand, was a firm rock: although brought down by a terrible fall, yet because of his experience in spiritual warfare he was not broken by despair, but leaping up he shed bitter tears from a contrite and humiliated heart. And as soon as our enemy saw them, he recoiled as if his eyes had been burnt by searing flames, and he took flight...
What does spoil repentance is being again entangled in the same evils. 'For there is one' we read, 'who builds, and one who pulls down, what have they gained more than toil? He who is dipped in water because of contact with a dead body, and then touches it again, what has he gained by his washing?' Even so if a man fasts because of his sins, and goes his way again, and does the same things, who will hear his prayer? And again we read 'if a man goes back from righteousness to sin the Lord will prepare him for the sword,' and, 'as a dog when he has returned to his vomit, and become odious, so is a fool who by his wickedness has returned to his sin.'
In words of boastfulness and self-justification there always lie concealed contrariness and pride, from which God turns away. After sinning one ought immediately to 'flee.' But, you will say, where? To the calm haven of heartfelt repentance. Every night before you go to sleep, tell God, the Knower of Hearts, all the sins you have committed in deed, word, and thought, and believe that God receives your heartfelt repentance. At the same time try to render your heart contrite by the memory of sudden death.
Repentance is real when afterwards you keep trying strenuously to live now as you ought; but without this it is not very effectual, if you repent just to say your sins & to keep on living as before.
The grace of repentance, which acts in those who struggle, is a patristic inheritance. It is a divine transaction and exchange in which we give dust and receive heaven. We exchange matter for the Spirit. Every drop of sweat, every pain, every ascesis for God is an exchange.
Painstaking repentance, mourning cleansed of all impurity, and holy humility in beginners, are as different and distinct from each other as yeast and flour from bread. By open repentance the soul is broken and refined; it is brought to a certain unity, I will even say a commingling with God, by means of the water of genuine mourning. Then, kindled by the fire of the Lord, blessed humility becomes bread and is made firm without the leaven of pride. Therefore, when this holy three-fold cord or, rather, heavenly rainbow, unites into one power and activity, it acquires its own effects and properties. And whatever you name as an indication of one of them, is a token also of another. The first and paramount property of this excellent and admirable trinity is the acceptance of indignity with the greatest pleasure, when the soul receives it with outstretched hands and welcomes it as something that relieves and cauterizes diseases of the soul and great sins. The second property is the loss of all bad temper, and humility as its subsiding. The third and highest degree is a true distrust of one’s good qualities and a constant desire to learn.
True repentance consists of withdrawing from sin and nurturing hatred for it. For, lo, when someone says from his heart: I have hated deceit and been repelled by it - then God accepts him with joy.
Remember, O my soul, the terrible and frightful wonder: that your Creator for your sake became Man, and deigned to suffer for the sake of your salvation. His angels tremble, the Cherubim are terrified, the Seraphim are in fear, and all the heavenly powers ceaselessly give praise; and you, unfortunate soul, remain in laziness. At least from this time forth arise and do not put off, my beloved soul, holy repentence, contrition of heart and penance for your sins.