Former President Donald Trump said that if Iran does not adhere to its commitments or behaves inappropriately, he will take whatever action is necessary.