This quote means that if you always do the right thing, you will please half of the people and surprise the other half. Doing what is right usually means following the moral standard and doing what is fair and just. Doing the right thing can be difficult, but it will make other people happy and impressed.