The US president's comments come after Iran threatens to "set fire" to any ship trying to pass through the Strait of Hormuz.