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.
Do not oppose the thoughts, which the enemy sows in you, but rather cut off all converse with them by prayer to God. We have not always strength enough so to oppose hostile thoughts as to stop them; on the contrary, in such attempts they frequently inflict us with a wound that is long in healing.
The key to Divine gifts is given to the heart by love of neighbor, and, in proportion to the heart's freedom from the bonds of the flesh, the door of knowledge begins to open before it.
Not he is chaste in whom shameful thoughts stop in time of struggle, work and endeavor, but he who by the trueness of his heart makes chaste the vision of his mind not letting it stretch out towards unseemly thoughts.
It is not possible for any man to draw near to Christ without tribulation, and without afflictions his righteousness cannot be preserved unchanged. If he puts an end to the labors that make righteousness increase, he will put an end to that which guards it, and his righteousness will be like unguarded treasure. And he will be like a gladiator surrounded by enemy ranks and stripped of his weapons, like a ship bereft of its sails and tackle, and like a garden deprived of its source of water.
It is, indeed, impossible for the mind not to be troubled by thoughts, but accepting them or rejecting them is possible for everyone who makes an effort...therefore we practice the frequent reading of Scripture, so that we may be open to a spiritual point of view. For this reason we frequently chant the psalms, so that we may continually grow in compunction. For this reason we are diligent in vigils, fasting, and praying, so that the mind which has been stretched to its limits may not taste earthly things but contemplate heavenly ones. When these things cease because negligence has crept in again, then, it is inevitable that the mind, by the accumulated filth of the vices, will soon turn in a carnal direction and fall.
It is impossible for the soul to be liberated from turbulent thoughts without the virtue of non-possessiveness. And without peace of the bodily senses it is impossible for the soul to have a peaceful intellect. And if it does not come into temptations it will not acquire wisdom of the Holy Spirit. And without laborious and persistence in reading, it will not come to the discernment of thoughts. And without the stillness of thoughts, the intellect cannot move to seek the hidden mysteries of God.
It is important also to study our God-given faith in detail, since he who is indifferent toward truth is in danger of becoming easy prey for false teachers.
If we remember the thief who, for a single confession on the cross, was taken into Paradise, we shall realize that it was not for the merit of the life he lived that he obtained so great blessedness, but that it was his by the gift of God, Who had mercy on him. Or, let us think of David, the king, whose two grievous and awful crimes were wiped away by one word of penitence. Neither here do we see that the merit of what he did was equal to obtaining pardon for such great offense, but the grace of God did the more abound when on the occasion of true penitence He did away with all that weight of sin for one single word of genuine confession. Again, when we consider the beginnings of man's calling and salvation, which, as the Apostle tells us, is not of ourselves or of our words, but we are saved by the gift and grace of God, we shall be able clearly to perceive how the end of perfection is not 'of him that willeth, nor of him that runneth, but of God Who showeth mercy,' Who makes us victors over our vices, although we have no merit at all of life or labors to weigh against them, nor does the effort of our will avail for us to reach the steep summit of righteousness, or to subdue the flesh which we are bound to use... For the outcome of all good flows from His grace, Who hath bestowed so great an eternity of bliss and such immeasurable glory, with manifold generosity, upon the weak will and the short life-work of man.
I shall speak first about control of the stomach, the opposite to gluttony, and about how to fast and what and how much to eat. I shall say nothing on my own account, but only what I have received from the Holy Fathers. They have not given us only a single rule for fasting or a single standard and measure for eating, because not everyone has the same strength; age, illness or delicacy of body create differences. But they have given us all a single goal: to avoid over-eating and the filling of our bellies... A clear rule for self-control handed down by the Fathers is this: stop eating while still hungry and do not continue until you are satisfied.
The full and complete definition of repentance is that we never again allow in ourselves the sins of which we repent, or whereby our conscience is stung. The mark of satisfaction and forgiveness is when we have driven out from our hearts all desire for them.
How can one say that a man has attained purity? - When he sees all men as being good, and when none appears to him to be unclean and defiled - then he is indeed pure in heart.