US president's direct threat comes after Tehran says it opposes war and no country has 'illusion' it can confront it.