One of the ways to fight against the yetzer hara is to be involved in many good deeds. The Rebbe of Kotzk zt’l told his chassidim that their sins don’t bother him as much as that they had time for sins.
A person should be so busy with good deeds, that there is no time for aveiros. A person that’s busy learning Torah, davening, giving tzedakah, doing chessed, working as well (with the intention to support his family) doesn’t have time to sin. ~ R’ Elimelech Biderman Shlita