US President Donald Trump signed a memorandum of understanding with Iran that, in article 1, explicitly forbids the US and Iran from threatening each other.
He did not have to sign that, but he did. And he touted it.
Almost immediately he violated it, and the Iranians used that to their advantage.