In life we often expect others to do things, that we are not prepared to do ourselves.
Don’t do as I do, do as your told. This sentiment is a perfect summary of that.
It is important to be the example to others of what you want to see.
The thing to be maybe consider is, trying to control others is a futile exercise, and therefore, it is better to focus entirely on our own behaviour. Then perhaps that will inspire others to want to be like that too. However, that is none of our business, other people’s behaviour is their business.
After all, right or wrong is all opinion.
I think that is better to do what you feel is right and skip the telling others, as I reckon no one likes to be told.