Kitzur Likutei Moharan I, 1:11
The evil inclination wants to make a person truly mad, God forbid, for one who commits a sin is mad, as our Sages, of blessed memory, said: 'A person does not commit a sin unless a spirit of folly has entered him'. But how can it come to a person and make him mad all at once, God forbid? Therefore the way of the evil inclination is to disguise itself first in mitzvot and to mislead the person, as if it were urging him to do a mitzvah, and afterwards it misleads him and entices him even further, until he comes to outright sins committed deliberately, God forbid. And this is exactly like the aspect of the madness of a madman, whose mind has become confused and deranged until he calls evil good, etc. Yet nevertheless there still remain in him some sparks of intellect and understanding, so that even according to his folly and lack of understanding he too understands and knows that one should not do such things, and nevertheless he does them. Because of this, two strategies are needed for healing the mad: namely, to strike them in order to subdue the wickedness of their willfulness, so that at least they should not be at ease in their madness, and at least they should not do the things that they themselves also understand to be madness and folly. And one must also place upon them Names and amulets in order to drive out from them the evil spirit that confuses and deranges their minds, God forbid, until they overturn the paths of uprightness and call evil good, etc. And likewise, regarding healing a person from the madness of the evil inclination, he also needs the two aspects mentioned above: namely, first to subdue his wickedness and willfulness, so that at least he will not do what he himself understands and knows to be evil and an outright sin, God forbid; and one must further drive out from him the evil spirit, the spirit of folly, which disguises itself in mitzvot and misleads him as if it were urging him to do a mitzvah, as mentioned above. And all this one merits completely only through engaging in Torah, which includes both kinds of strategies mentioned above.
View original Hebrew
הַיֵּצֶר הָרָע הוּא רוֹצֶה לַעֲשׂת אֶת הָאָדָם מְשֻׁגָּע מַמָּשׁ חַס וְשָׁלוֹם, כִּי בַּעַל עֲבֵרָה הוּא מְשֻׁגָּע. כְּמוֹ שֶׁאָמְרוּ רַבּוֹתֵינוּ זִכְרוֹנָם לִבְרָכָה: 'אֵין אָדָם עוֹבֵר עֲבֵרָה אֶלָּא אִם כֵּן נִכְנָס בּוֹ רוּחַ שְׁטוּת'. אַךְ אֵיךְ יָבוֹא לְהָאָדָם וְיַעֲשֶׂנּוּ פִּתְאם מְשֻׁגָּע חַס וְשָׁלוֹם. עַל כֵּן דֶּרֶךְ הַיֵּצֶר הָרָע לְהִתְלַבֵּשׁ תְּחִלָּה בְּמִצְווֹת וּמַטְעֶה אֶת הָאָדָם כְּאִלּוּ מְסִיתוֹ לַעֲשׂת מִצְוָה וְאַחַר כָּךְ הוּא מַטְעֵהוּ וּמְסִיתוֹ עוֹד יוֹתֵר, עַד שֶׁבָּא לַעֲבֵרוֹת גְּמוּרוֹת בְּזָדוֹן חַס וְשָׁלוֹם. וְזֶה מַמָּשׁ כְּמוֹ בְּחִינַת הַשִּׁגָּעוֹן שֶׁל הַמְשֻׁגָּע שֶׁנִּתְבַּלְבֵּל וְנִטְרָף דַּעְתּוֹ עַד שֶׁאוֹמֵר לָרַע טוֹב וְכוּ' אַךְ אַף עַל פִּי כֵן עֲדַיִן יֵשׁ בּוֹ אֵיזֶה נִיצוֹצֵי הַשֵׂכֶל וְהַדַּעַת מַה שֶּׁאֲפִילּוּ לְפִי שְׁטוּת וְחֶסְרוֹן דַּעְתּוֹ הוּא מֵבִין וְיוֹדֵעַ גַּם כֵּן שֶׁאֵין לַעֲשׂת דְּבָרִים כָּאֵלּוּ, וְאַף עַל פִּי כֵן הוּא עוֹשֶׂה אוֹתָם עַד שֶׁמֵּחֲמַת זֶה צְרִיכִים שְׁתֵּי תַּחְבּוּלוֹת לִרְפוּאַת הַמְשֻׁגָּעִים, הַיְנוּ לְהַכּוֹתָם בִּכְדֵי לְהַכְנִיעַ רִשְׁעַת זְדוֹנָם שֶׁלּא יִהְיֶה נוּחָה לָהֶם עַל כָּל פָּנִים בְּשִׁגְיוֹנוּתָם וְלא יַעֲשּׂ עַל כָּל פָּנִים הַדְּבָרִים שֶׁהֵם בְּעַצְמָם מְבִינִים גַּם כֵּן שֶׁהֵם שִׁגָּעוֹן וּשְׁטוּת. וְגַם צְרִיכִין לָשּׂם עֲלֵיהֶם שֵׁמוֹת וּקְמֵיעוֹת בִּכְדֵי לְגָרֵשׁ מֵהֶם הָרוּחַ רָעָה שֶׁמְּבַלְבֵּל וּמַטְרִיף דַּעְתָּם חַס וְשָׁלוֹם עַד שֶׁמְּהַפְּכִין אָרְחוֹת ישֶׁר וְאוֹמְרִים לָרַע טוֹב וְכוּ'. וּכְמוֹ כֵן לְעִנְיַן רְפוּאַת הָאָדָם מִשִּׁגְעוֹנֵי הַיֵּצֶר הָרָע הוּא צָרִיךְ גַּם כֵּן לִשְׁתֵּי בְּחִינוֹת הַנַּ"ל. הַיְנוּ לְהַכְנִיעַ תְּחִלָּה רִשְׁעָתוֹ וּזְדוֹנוֹ שֶׁלּא יַעֲשֶׂה עַל כָּל פָּנִים מַה שֶּׁהוּא בְּעַצְמוֹ מֵבִין וְיוֹדֵעַ שֶׁהוּא רַע וַעֲבֵרָה גְּמוּרָה חַס וְשָׁלוֹם, וְגַם צְרִיכִין עוֹד לְגָרֵשׁ מִמֶּנּוּ הָרוּחַ רָעָה רוּחַ שְׁטוּת שֶׁמִּתְלַבֵּשׁ עַצְמוֹ בְּמִצְווֹת וּמַטְעֶה אוֹתוֹ כְּאִלּוּ מְסִיתוֹ לַעֲשׂת מִצְוָה כַּנַּ"ל. וְכָל זֶה זוֹכִין בִּשְׁלֵמוּת רַק עַל יְדֵי עֵסֶק הַתּוֹרָה שֶׁכְּלוּלָה מִשְּׁתֵּי מִינֵי תַּחְבּוּלוֹת הַנַּ"ל.Read this passage within Part I · Torah 1, in its full context