There’s long been this thing called the Golden Rule. Which says “do unto others as you would wish to be done unto”. It has found some favour over the years as a maxim for people to live by. I find some issue with it, though – best summed up for me by George Bernard Shaw:
“Do not do unto others as you would that they should do unto you. Their tastes may be different.”