As it was in the garden of Eden when the devil tempted Eve, we are always under attacks from the devil. It has seemed like the Devil hits me the hardest when I am trying to live and do right. He knows my weaknesses and he knows your weakness and he will attack when you least expect him to.

1 Peter 5:8“Be sober, be vigilant; because your adversary the devil, as a roaring lion, walketh about, seeking whom he may devour”
John 10:10 – The thief cometh not, but for to steal, and to kill, and to destroy: I am come that they might have life, and that they might have [it] more abundantly
God shows us in his word how to protect ourselves from the enemy’s attack.

James 4:7 – Submit yourselves therefore to God. Resist the devil, and he will flee from you.
Ephesians 6:11-18 (KJV)
11 Put on the whole armour of God, that ye may be able to stand against the wiles of the devil.
12 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.
13 Wherefore take unto you the whole armour of God, that ye may be able to withstand in the evil day, and having done all, to stand.
14 Stand therefore, having your loins girt about with truth, and having on the breastplate of righteousness;
15 And your feet shod with the preparation of the gospel of peace;
16 Above all, taking the shield of faith, wherewith ye shall be able to quench all the fiery darts of the wicked.
17 And take the helmet of salvation, and the sword of the Spirit, which is the word of God:
18 Praying always with all prayer and supplication in the Spirit, and watching thereunto with all perseverance and supplication for all saints;
When we feel the devil attacking us turn to God in prayer and his word. It is the only defense you have against evil.