Iran warns Gulf countries against use of territory for attacks