President Donald Trump is threatening Iran with an assault that some experts in the laws of war say would be illegal.