Synonyms for both are conviction.
Antonyms for both are credit.
The saying means what is considered good is in fact bad and what is considered bad is actually good.
an example could be you trust someone and they seem to be a good person but looks are deceiving and they turn out to be bad
What kind of examples do you need?