Harmful thoughts gradually take root in our mind when we have not remembered the Lord via Kirtan, Japa, Shravan, etc. for some time. This some time period varies according to the amount of exposure we are having with activities, food, etc. which make us forget the Lord.
But Kirtan is so powerful that even when such thoughts grab us and are hell-bent on pulling us down with no possibility of relief, if we can somehow delay our succumbing to them and play the harmonium and actually remember the Lord by singing His glories for even 15 minutes, then such thoughts simply vanish as if they never existed.
This is one of the cures of Maya but prevention is even better than that. You can do that as follows. Sing Kirtan with the harmonium daily after waking up, as early in the morning as you can, even before doing Japa etc. Do this Kirtan much before you give chance for such thoughts to take root in your mind by your forgetfulness of the Lord. Then such thoughts can be kept at bay for even weeks, months, and years; by never letting them arise in the first place due to our positive remembrance of the Lord.
Always know that remembrance of the Lord is the only fire which burns such desires even in their most advanced stages and saves us from the very brink of ruining ourselves. And believe me, you can become a true Goswami if you can somehow resist them totally for even a few years via the above method. Win one day at a time for our Lord by remembrance! And you will be with Him after death without fail!