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.
Key to resisting the influence of Satan the devil
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.
1. Recognize and acknowledge sins and repent of them.
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 (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×).
2. Submit to God.
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 will to God and are baptized so that they may receive the Holy Spirit—are placed by Jesus Christ into His Church. If you are serious about resisting Satan and submitting to God, we strongly recommend that you find a true minister of God to discuss repentance and 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.
3. Put on the whole Armor of God.
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 in the heavenly places. 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×, New Revised Standard Version).
The apostle 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).
4. Be active in daily Bible study and prayer.
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×). These are the essential keys for warding off Satan's efforts to regain control over us.
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.