The idea that laws decide what is right or wrong is mistaken in general. Laws are, at their best, an attempt to achieve justice; to say that laws define justice or ethical conduct is turning things upside down.
Richard Stallman (2002). “Free Software, Free Society: Selected Essays of Richard M. Stallman”, p.157, Lulu.com