The challenge is to fight those thoughts and respond to the calling of Allah.
Always seek refuge from Allah against the cursed Shaitan. Shaitan will always make disobeying Allah pleasing and beautiful to us.
Increase the recitation of “Auudhu billlah …….