can good intentions be more important than the consequences?

the legal system only sees the consequences, regardless of the intentions - it assumes that free will exists