James 4:7 Submit yourselves, then, to God. Resist the devil, and he will flee from you.
The devil doesn’t run just because we resist. He flees because we submit to God.
When our hearts and minds are obedient to the Father, then the way we resist is totally different. When we are set on what is right and holy and good, then we are not nearly as open to temptation and wrong.