The US president issued the warning to Iran if it does not reach a deal on reopening the Strait of Hormuz by his deadline.