Iran has troops in at least three countries thousands of km of its border, its on the offence. Besides, it's not like these missiles could do more than tickle the American army. Their only use is to menace the other countries of the region, except no country in the region is even capable of invading Iran. In short, their purpose is offensive.
Now, 'Moderate' President Rafsanjani argued that "the use of a nuclear bomb in Israel will leave nothing on the ground, whereas it will only damage the world of Islam". It's best we do not allow such an apocalyptic scenario - such a war could hardly be contained to the Middle East.