Confront and conquer temptation at the beginning, not at the end. In other words, the best and most effective tactic against temptation is to deal with it from a position of strength, before it has an opportunity to weaken you. Better to take steps up front to eliminate temptation altogether (if possible), than to deal with it later when your defenses are down.
Sam Storms