Molière said this quote

It is a public scandal that gives offence and it is no sin to sin in secret.