The following are the three major ways of resisting the devil.
1) Run to God.
Submit yourselves, then,to God. Resist the devil, and he will flee from you. Resisting the devil must be accompanied by submitting to God. Unsubmissive believer will not see victory. James chapter 4 Verses 8 says that " "Draw near to God and he will draw near to you". We cannot resist the devil if we are not living in close fellowship and intimate communion with God.
2) Humble yourself before God.
A humble heart would rather lie in the dust than rise to prominence by sinful means; it would prefer to lose everything than to sin and to be left with a guilty conscience. The humble person is either drawn in by what Satan offers, nor terrified by his threats.
3) Take up the word of God.
Ephesians 6v7 says " the sword of the spirit which is the word of God". We stand against the schemes of the devil. The devil's only weapon against us is deception (2 Corinthians 11v13). God's truth protects us from Satan's lies. Jesus responded tho the devil's temptation by quoting the word "it is written... It is written... It is also written"(Matthew 4v4,5,7). If our lord resisted Satan's attacks with scriptures we also meet the tempter's attacks on the same basis.