Donald Trump has alternated between threats of escalating the Iran war with a fresh attack and winding down hostilities.