It's a very different thing to write code with good intentions, only to have it repurposed by others for nefarious intent.
It's obviously not a black and white matter, or we wouldn't be having this discussion. The important thing to remember, though, is intent. What was that code or feature originally intended to do? If it was intended to be malicious, then why write the code?
I actually do not believe this is really a legal issue, and is instead a moral and ethical issue on a personal level. It is only becoming a legal issue because we have no other way to deal with it, since not every person operates on the same moral code. If more software developers went out of their way to hold themselves to a higher ethical standard, maybe fraud wouldn't be as prevalent as it is today, and we wouldn't need to have this discussion in the first place.
a gun by itself doesn't show intent to commit assassinations. only when it's taken by a revolutionary and aimed at the heart of capitalist pigs will the intent be realized.
the gun maker cannot be held responsible for creating a device that intended to kill someone important.
ex. See people using cars or knives or guns as weapons to commit crimes, we don't throw in Toyota or H&K executives in jail. Just because an item was used by someone, the inanimate object by itself do not display intent, intent is something that can only be held in the minds of a person.