The quote means that you should treat others they way you want to be treated. You should not treat others by being mean. If you don't want to be hurt or bullied, then don't bully others. If you are nice to a person, they will be nice to you.
PS A word to describe the quote you asked is the Golden Rule.
Hope you can understand that clearly. :-)
Follow if you want.