यः शास्त्रविधिमुत्सृज्य वर्तते कामकारतः।
न स सिद्धिमवाप्नोति न सुखं न परां गतिम् ॥
yaḥ śhāstra-vidhim utsṛijya vartate kāma-kārataḥ
na sa siddhim avāpnoti na sukhaṁ na parāṁ gatim
He who, having cast aside the ordinances of the Scriptures, followeth the promptings of desire, attaineth not to perfection, nor happiness, nor the highest goal.
In plain words: Whoever ignores the teachings of scripture and just does whatever desire tells them will not find perfection, happiness or the highest goal.