आसन्नश्चास्य व्यसनोपघाते प्रयतेत परोपजापातिसंधानोपधिभ्यश्च रक्षेत् ॥ कZ_०५.५.०४ ॥
āsannaścāsya vyasanopaghāte prayateta paropajāpātisaṃdhānopadhibhyaśca rakṣet
Being close to him, he should strive to avert calamities arising from vices and protect him from enemy instigation, entrapment, and covert tests/plots.
Vices create predictable openings for blackmail, manipulation, and engineered scandals; thus mitigating vice-related harm is a security duty.