The meaning of the saying do unto others as you would like them to do unto you is basically just a saying meaning that if you want to be treated nicely you should treat other people nicely as well.
If you want people to treat you nice you have to treat those other people nice as well.