There is this thing about vision. It is sharper when it focuses on the ills of others and practically blind when it comes to your own flaws. There is hardly a school of philosophy/religion which turns an...err...blind eye to this particular character trait in humans. There is something about seeing the 'mote in your brother's eye ignoring the beam in your own eye' in the Bible, for example.
Tiru has this to say about the same subject
Than kutram neeekkip pirarkutram kaangirpin enn kutram aagum iraikku - Tirukkural
He who first cleanses himself of his own faults before assessing the flaws of others is a flawless leader - Loose Translation
You know, that sort of seems obvious. I mean, like, if you have to cleanse yourself of any of the faults that you could possibly see in others, that would well nigh mean cleansing yourself of ALL faults. Ergo, you'd have to end up being flawless.
The point, though, is that you should acknowledge that something which is a flaw in others is also a flaw in you. Essentially, you cannot say that it is ok for me but not for them - the 'Do as I say, not as I do' school of leadership.
There is a story about Mahatma Gandhi where a woman brings her kid to him and asks him to advice the kid not to eat sugar. Whereupon Gandhi asks her to come after two weeks. THEN he tells the kid to stop eating sugar because it was bad for him. The woman asks him why he could not have given this same advice two weeks back. Gandhi says that he himself loved eating sugar two weeks back and had to break the habit himself before he advised the kid to do so. THAT is adherence to cleansing yourself of the flaw before you see it in others.
It is a tough ask for more mundane leaders to cleanse themselves of all their flaws before they lead. At the same time, it is rather tough to carry conviction about, say, punctuality when you enter the office three hours late and lecture the staff about being on time. There has to be some via media - an in-between path where you can work to reduce your own flaws WHILE seeking others to do so as well. Only when you know WHY it IS a flaw, what damage it causes, how difficult it may be to get rid of it and, yet, how important it is to do so - only THEN can you carry conviction as a leader and be SEEN as a flawless leader. Not flawless as in never making a mistake but flawless as in being someone who walks his own talk.
I mean, unless people believe that you truly espouse those values yourself, why would THEY strive to espouse them? As they say, Yatha Raja Thatha Praja. If YOU only preach and don't practise, they too will only preach and not practise.
And put in all their efforts into not getting caught!