Remember that Our Lord taught that when someone has a devil driven out, the devil goes away to a 'desert place', or 'waterless place', meaning that the devil is frustrated by its inability to do what it is inclined to do, namely, to corrupt people and cause insult to God.
If the person once affected goes on re-opening the 'door', so to speak, of their soul to sin, the devil returns with seven of its companions (a euphemism for returning in greater fury and with more cunning devices, although influence by multiple devils/multiple temptations is not out of the question).
In my experience, devils are like those debt-collectors that call on the phone... I got in trouble once by not paying some bill that I owed. The collector called me, knowing that I know full well my error. The more I avoided taking the collector's calls, the more they seemed to call and get increasingly insistent and rude every time.
The devils that chased you around when you DID participate in sin (especially sins of the flesh) KNOW that you WILLINGLY went after those things. They now know how to 'hit you where it hurts', so to speak, by taking advantage of perceived weaknesses in your spiritual and moral character.
Allow me, as a fellow wretch who has been beset with these temptations many, many times and have only relatively recently been graced with victories, to remind you of Our Lord's words to his Apostles after they had returned from their first local missionary preaching efforts:
From the holy Gospel according to St. Luke, chapter 10:
17 And the seventy-two returned with joy, saying: Lord, the devils also are subject to us in thy name. 18 And He said to them: I saw Satan like lightening falling from heaven. 19 Behold, I have given you power to tread upon serpents and scorpions, and upon all the power of the enemy: and nothing shall hurt you. 20 But yet rejoice not in this, that spirits are subject unto you; but rejoice in this, that your names are written in heaven.
We are not to be glad that the temptations were defeated, whether by our prayer efforts or by any other defense, but rather, we are to be exceedingly glad that we HAVE the weapons at our disposal, which is a benefit of being God's children and being in the state of grace to rightly see, avoid and fight against temptations.
St. Anthony of Padua, hammer of heretics, terror of Hell, pray for us.
St. Michael Archangel, captain of the hosts of Heaven, defend us in battle.
Sacred Heart of Jesus, have mercy on us.