It means treat people the way you would want to be treated. What goes around, comes around, whatever you do, it will come back to you, whether good or bad.
while this is a great topic firstly.i think it simply means that if people treat you bad you do same to them.but just ignore it hurts them more than you