The Lord your God is testing you to find out if you really love him with all your heart and with all your soul.
When temptation comes at you like gunfire in a battle, don't be surprised as children of God. There are gonna be times when your life will be free from temptation and yes those are sweet times. But there will be times where the going gets touch, but it will teach you to trust Jesus completely.
DON'T GIVE UP OR CONDEMN YOURSELF FOR BEING SO EASILY TEMPTED TO SIN.
after all the one we call holy he was also tempted in the wilderness when he fasted for 40 days and 40 nights, but he use his power and authority by speaking the word to the temptation and trusting his father and being obedient. And the devil fled from him. ( see Matthew 4:1-11).
Tou aren't expected to be immune to temptation, oh it will come at you for sure, but what you need to do is trust these words IF YOU LIVE BY WHAT I SAY, YOU ARE TRULY MY DISCIPLES, YOU WILL KNOW THE TRUTH, AND THE TRUTH WILL SET YOU FREE. (See John 31-32). according to Jesus all you need for peace from temptation is to walk in obedience. No matter what comes at you, OBEY.
No matter how hard it may seem to you to walk in obedience because your dealing with temptation, just obey, obey, obey, obey, obey and he promises you that you will know the truth, and miraculously that truth will set you free.
Is there something you want to be free from ? If something plagues you and is making your life miserable, then you've just found the answer. Obey God and you will be set free.