Oftentimes, people say that if the devil comes our way, we should resist him and he will flee from us. That is not entirely true. We usually leave out a part:
James 4:7 Submit yourselves therefore to God. Resist the devil, and he will flee from you.
The devil is not afraid of us – he is afraid of God. If we first submit to God and then resist the devil, God will be standing with us as we resist and the devil will flee.
Don’t try resisting the devil without first submitting to God.