U.S. President Donald Trump has warned of military action and economic pressure on Iran as tensions over its nuclear program escalate.