ספר המדות, A Righteous Person / Part I A Righteous Person / Part I · קנג
Sefer HaMiddot 2164
קנג. מִי שֶׁמְּקָרֵב עַצְמוֹ. לַצַּדִּיק וְקִרְבָתוֹ אֵינוֹ בִּתְמִימוּת, עַל יְדֵי זֶה נִתְהַפֵּךְ אַחֵר כָּךְ לְרוֹדֵף.
153. Someone who draws close to the Tzaddik, but his drawing close is not with sincerity (/innocence), through this he is turned around afterwards to be an opposer (/attacker. t.n. The commentaries here do not provide any citation, however there are obvious examples in the Torah such as Lavan and Jacob).