God's Word assures us, "Resist the devil and he will flee from you" (James 4:7 James 4:7Submit yourselves therefore to God. Resist the devil, and he will flee from you.
American King James Version×). This promise, however, is clearly directed toward those willing to "submit to God" (same verse) and is immediately followed with the instruction, "Draw near to God and He will draw near to you" (James 4:8 James 4:8Draw near to God, and he will draw near to you. Cleanse your hands, you sinners; and purify your hearts, you double minded.
American King James Version×).
How, then, do we draw near to God? His instruction continues, "Cleanse your hands, you sinners; and purify your hearts, you double-minded" (same verse). We must actively seek to eliminate Satan's way of thinking and behaving from our lives.
Satan, however, is so clever and powerful that no human being can successfully resist his influence—without God's help. Therefore the key to resisting the devil is to sincerely and consistently draw near and remain close to God.
Our first step is to allow God to wash Satan's influence from our minds. This takes place through recognizing and acknowledging our sins and repenting of them. The Scriptures compare this transformation from Satan's way of thinking to coming back to life from the dead:
"And you He made alive, who were dead in trespasses and sins, in which you once walked according to the course of this world, according to the prince of the power of the air, the spirit who now works in the sons of disobedience, among whom also we all once conducted ourselves in the lusts of our flesh, fulfilling the desires of the flesh and of the mind, and were by nature children of wrath, just as the others" (Ephesians 2:1-3 Ephesians 2:1-3  And you has he quickened, who were dead in trespasses and sins;
 Wherein in time past you walked according to the course of this world, according to the prince of the power of the air, the spirit that now works in the children of disobedience:
 Among whom also we all had our conversation in times past in the lusts of our flesh, fulfilling the desires of the flesh and of the mind; and were by nature the children of wrath, even as others.
American King James Version×).
When we begin to truly repent and submit to God from the heart, we begin to take His Word seriously and to obey His instruction and commands. Then His Word, the Bible, begins cleaning up our minds, washing away our evil thoughts and motives. All who genuinely repent—who wholeheartedly surrender their lives to God and are baptized so that they may receive the Holy Spirit—are placed by Jesus Christ into His Church. We strongly recommend that you find a true minister of God to discuss baptism.
Now notice Christ's concern for them and how He works with them to remove evil influences from their hearts and minds: Christ "loved the church and gave Himself for her, that He might sanctify and cleanse her with the washing of water by the word, that He might present her to Himself a glorious church, not having spot or wrinkle or any such thing, but that she should be holy and without blemish" (Ephesians 5:25-27 Ephesians 5:25-27  Husbands, love your wives, even as Christ also loved the church, and gave himself for it;
 That he might sanctify and cleanse it with the washing of water by the word,
 That he might present it to himself a glorious church, not having spot, or wrinkle, or any such thing; but that it should be holy and without blemish.
American King James Version×). God's Word is the instrument Christ uses—through the power of the Holy Spirit—to wash away Satan's influences from our thinking.
But what can we do about the devil's attempts to influence us in the future? Here, too, God provides us with a defense: "Finally, be strong in the Lord and in the strength of his power. Put on the whole armor of God, so that you may be able to stand against the wiles of the devil. For our struggle is not against enemies of blood and flesh, but against the rulers, against the authorities, against the cosmic powers of this present darkness, against the spiritual forces of evil . . . Therefore take up the whole armor of God, so that you may be able to withstand on that evil day, and having done everything, to stand firm" (Ephesians 6:10-13 Ephesians 6:10-13  Finally, my brothers, be strong in the Lord, and in the power of his might.
 Put on the whole armor of God, that you may be able to stand against the wiles of the devil.
 For we wrestle not against flesh and blood, but against principalities, against powers, against the rulers of the darkness of this world, against spiritual wickedness in high places.
 Why take to you the whole armor of God, that you may be able to withstand in the evil day, and having done all, to stand.
American King James Version×, NRSV).
Paul then lists specific elements of the spiritual armor God makes available to us. He compares the defense of God's servants against Satan's influence to a "belt of truth around your waist" and a "breastplate of righteousness" (Ephesians 6:14 Ephesians 6:14Stand therefore, having your loins girt about with truth, and having on the breastplate of righteousness;
American King James Version×). He describes their combat shoes as "whatever will make you ready to proclaim the gospel of peace" (Ephesians 6:15 Ephesians 6:15And your feet shod with the preparation of the gospel of peace;
American King James Version×). Their shield is their faith in God and His Son, Jesus Christ, "with which you will be able to quench all the flaming arrows of the evil one" (Ephesians 6:16 Ephesians 6:16Above all, taking the shield of faith, with which you shall be able to quench all the fiery darts of the wicked.
American King James Version×).
Their resolve is protected by "the helmet of salvation" (Ephesians 6:17 Ephesians 6:17And take the helmet of salvation, and the sword of the Spirit, which is the word of God:
American King James Version×)—the assurance that in steadfastly serving and pleasing God they will receive eternal life. The one offensive weapon they can use to cut to ribbons Satan's attitudes and philosophies is the "sword of the Spirit, which is the word of God" (same verse). Indeed, all the elements of the armor listed derive from Scripture, so it is vital that we be studying and meditating on the Bible regularly.
Finally, Paul says, "Pray in the Spirit at all times in every prayer and supplication. To that end keep alert and always persevere in supplication for all the saints" (Ephesians 6:18 Ephesians 6:18Praying always with all prayer and supplication in the Spirit, and watching thereunto with all perseverance and supplication for all saints;
American King James Version×). Indeed, regular prayer is essential to maintaining our nearness to God.
These are the essential keys for warding off Satan's efforts to regain control over "the ones who have actually escaped from those who live in error" (2 Peter 2:18 2 Peter 2:18For when they speak great swelling words of vanity, they allure through the lusts of the flesh, through much wantonness, those that were clean escaped from them who live in error.
American King James Version×). The more our character becomes like God's perfect nature, the less Satan will feel comfortable in our presence, and the more he will be inclined to flee from us.