Tell that to the UN with regards to Iraq. medicines can be used to make chemical and biological weapons. Also, weapons trading is not illegal. Frowned upon yes, and thus withdrawing trade from your antion woudl be an option, but it is not illegal.
EDIT:
Indeed, trading with terrorists, though strongly frowned upon, is not illegal.
EDIt 2: Added second quote.
Comment