He made the remarks in a meeting with the visiting Russia's special envoy on Syria, Alexander Lavrentiev, saying any agreement should observe an "unchangeable principle" that it "should not prepare the ground for Syria's disintegration."
All sides involved in the Syrian talks must respect the country's national sovereignty, he stressed.
The Iranian security official warned that Israel and its allies are at work to undermine the sovereignty of the legal Syrian government.
He described as "unacceptable" the moves by some "terrorist" groups to take advantage of political talks and cease-fire to restore power.
Lavrentiev said Iran, Russia and Syria are playing a leading and determining role in the fight against terrorism.
Iran and Russia have emerged as staunch regional allies of Syria in the country's long-lasting conflict.
On July 10, the chairman of Iran parliament's National Security and Foreign Policy Commission reiterated that Iran would continue its military advisory mission to Syria in its fight against terrorism.
"We reserve our right to support the Syrian people and government in the fight against terrorists," Alaeddin Boroujerdi said.