I remember a Douglas Crockford (the "JS: the good parts" author) talk where he had added a similar clause to the license for jslint. It said it couldn't be used for evil. And then IBM asked for an exemption.
https://en.wikipedia.org/wiki/Douglas_Crockford#%22Good,_not...