Premanand Maharaj Ji
How do I stay away from wrong actions and stay in dharma?
Give up what you know is wrong
Do not do what you know is wrong, study scripture and listen to satsang. Dharma is action without sin, and its measure is Bhagwan.
So avoid these sinful acts. Do not do the things you know are wrong. Then you will stay established in dharma.