The better advice is “Do not unto others what you do not want done unto you.”