France on Tuesday warned its nationals against traveling to Iran and to Iraq, citing an “extremely volatile” security situation.