In James 4:7, submit to God first, then you are able to resist the Devil. Have the word of God in your life first, then you will have authority to resist the Devil, who will flee.