Every minute you are thinking of evil, you might have been thinking of good instead. Refuse to pander to a morbid interest in your own misdeeds. Pick yourself up, be sorry, shake yourself, and go on again.
I don't believe in devils. Indifference and misunderstandings can create evil situations. Most of the time, people who appear to be evil are really victims of evil deeds.