What is the meaning of [Do unto others as you would have them do unto you]

“Judges ought to be more learned than witty, more reverend than plausible, and more advised than confident. Above all things, integrity is their portion and proper virtue.”,Francis Bacon, Essays (1825), Of Judicature.,Based on the Bible (Matthew 7-12; Luke 6-31). “Therefore all things whatsoever ye would that men should do to you, do ye even so to them; for this is the law and the prophets” in the King James version; “So in everything, do to others what you would have them do to you, for this sums up the Law and the Prophets.” in the New International Version