The following is from St. Theophan the Recluse, and the book "Thoughts for Each Day of the Year." The answer to the question is contained in the ending phrase; "Be sober, watch and pray." In our sobriety, let us root out the secret places in our hearts where sin hides. In our watchfulness, let us carry our finding to the place of repentance. And in our prayer, let us ask the Lord to lead us not into temptation, so that we may not again fail as we have before.
The devil approached the God-man with temptations. Who then among men is free of them?
He who goes according to the will of the evil one does not experience attacks, but is simply turned more and more toward evil.
As soon as one begins to come to himself and intends to begin a new life according to God’s will, immediately the entire satanic realm enters into action: they hasten to scatter good thoughts and the intentions of the repentant one in any way they can.
If they do not manage to turn him aside, they attempt to hinder his good repentance and confession; if they do not manage to do that, they contrive to sow tares amidst the fruits of repentance and disrupt his labors of cleansing the heart.
If they do not succeed in suggesting evil they attempt to distort the truth; if they are repulsed inwardly they attack outwardly, and so on until the end of one’s life. They do not even let one die in peace; even after death they pursue the soul, until it escapes the aerial space where they hover and congregate.
You ask, “What then should we do? It seems hopeless and terrifying!”
For a believer there is nothing terrifying here, because near a God-fearing person demons only busy themselves, but they do not have any power over him. A sober person of prayer shoots arrows against them, and they stay far away, not daring to approach, and fearing the defeat which they have already experienced.
If they succeed in something, it is due to our blundering. We slacken our attention, or allow ourselves to be distracted by their phantoms, and they immediately come and disturb us more boldly.
If you do not come to your senses in time they will whirl you about; but if a soul does come to its senses they again recoil and spy from afar to see whether it is possible to approach again somehow.
So be sober, watch, and pray—and the enemies will do nothing to you.