A catechumen once asked what he could do to get victory over bad dreams: especially lustful dreams that roused his passions and often led him into temptation.
I told him that this is one of those aspects of life in a fallen body that must be resisted and endured. One of the ways Satan seeks to weary and wear out the saints (or those who strive to be holy) is through the constant going astray of our flesh. Our job is to resist and to return our attention to God and to whatever is good, true and beautiful.
When we turn our attention to Jesus, then Jesus fights our battles. One of the desert fathers said that trying to confront our own wicked thoughts is like trying to drive off wild dogs by throwing biscuits at them. We end up feeding the very thing we are trying to drive away. But if we turn our attention to Jesus, to the One who saves, to the One who made us and loves us and calls us to Himself, then the barking of the dogs fades away into the background. Then Christ Himself figh