Iran says UAE-Israel deal is dangerous and illegitimate