Simple solution for that. If you jam GPS and it makes an autonomous tractor run over a school, you're liable for the manslaughter of the school kids. Trains can be derailed, but they're still allowed to operate and we just put the derailer in prison. And knives can be used to stab people. And someone can even grab your arm and force you to stab someone with the knife, and the law understands this.