Fyodor Dostoyevsky said this quote

The criminal who revolted against society hates it, and considers himself in the right; society was wrong, not he. Has he not, moreover, undergone his punishment? Accordingly he is absolved, acquitted in his own eyes. In spite of different opinions, everyone will acknowledge that there are acts which everywhere and always, under no matter what legal system, are beyond doubt criminal, and should be regarded as long as man is man.