Yes this is from Iblis. You have to be prepared for such moments. Plan ahead of time. Have a plan for yourself such that when you feel such wave of attacks, quickly put yourself in a setting in which you are unable to commit the sin. Also, take deep breaks that say “La ilaha Illa Allah” and do wudhu immediately. It also helps. So just run to a setting that doesn’t let you commit the sin.