Arthur Schopenhauer said this quote

So if you have to live amongst men, you must allow everyone the right to exist in accordance with the character he has, whatever it turns out to be: and all you should strive to do is to make use of this character in such a way as its kind and nature permit, rather than to hope for any alteration in it, or to condemn it off-hand for what it is. This is the true sense of the maxim--Live and let live. That, however, is a task which is difficult in proportion as it is right; and he is a happy man who can once for all avoid having to do with a great many of his fellow creatures.