The US National Security Advisor visited the UAE and warned Iran against attacks on US targets or its allies.