If you tell someone to do something they do it for you not them.
There are only so many times that person will go against what they think is right without developing a level of resentment.
If you share with somebody why you do something and you help them understand the benefit then if they agree next time they will do it your way.
They will do what you want them to do for them not you. There will be no resentment.
If they still don’t do it your way maybe you should understand why they do it their way.
The only long term way to change someone’s behaviour is to inspire them to do differently.
It then becomes their way of doing it not just yours.