Therefore submit to God. Resist the devil and he will flee from you. But each one is tempted when he is drawn away by his own desires and enticed. We should not entertain thoughts of sin. If we do not think it, we will not do it.
Avoidance is the best medicine for temptation.
It is best to prevent the problem before it has a chance to grow. That I might not sin against You. When Jesus was tempted, He quoted the written Word of God to the devil. We should do the same. Remember, the Greater One lives in you.