non faciat malum, ut inde veniat bonum
Performing some illegal action is not excused by the fact that a positive result came therefrom. Often used to argue that some forms of expression, such as graffiti or pornographic films, cannot be given the protection of law (e.g. copyright) as they are or may be considered illegal or morally reprehensible.