The advice comes after an escalation in military activity between Israel and Iran in recent days.