The smart way to fight temptation is to run away from it. The smart way to kill your ego is to starve it. Similarly, the smart way to overcome any sin is to ignore it and head straight for the Lord. Seek union with him and you'll be shielded from all evil. How nice it is that you would rest in God while he removes even all your tendencies to sin! God to be loved is to be enjoyed too.