Actually, you can kill to prevent death, Nightblood's "Destroy Evil" command compels him to destroy whatever evil his wielder sees, because evil is a perception. If you kill a man who would otherwise kill another, you are preventing death. The death of the person that man would have killed. Of course there is the risk of misinterpretation which could make the sword believe that the only way to truly prevent any death is to kill everyone....,