Tanya Chapter 12, Class 4 (101). The second way the beinoni (when in the Memshala state) defeats the Yetzer HaRa is due to the idea that this (good vs evil) is a fight between light and darkness (not only “nature.”) And this is also through the help of Chochma, like the idea of הקב”ה עוזרו in the next Perek.