"If America carries out any violations today, the whole world will condemn America. They will not condemn Iran," Rouhani said. "Then they will say why did you trust America and sign an agreement with them?"
The president once again defended the accord, saying the advantages that Iran gleaned from the landmark agreement are “irreversible” and no one can roll back its positive results.
"In the nuclear negotiations and agreement we reached issues and benefits that are not reversible. No one can turn that back, not Trump or anyone else," Rouhani said at a ceremony at Tehran University marking the start of the new academic year.
"Even if 10 other Trumps are created in the world, these are not reversible."
Rouhani's comments came as US President Donald Trump appears to be stepping back from his campaign pledge to tear up the deal, instead aiming to take other measures against Iran.
Under the deal, Iran agreed to limit its nuclear program in return for the easing of economic sanctions.
However, Trump is expected to announce soon that he will decertify the deal, senior administration officials have said
Trump, who has called the pact an "embarrassment" and "the worst deal ever negotiated", has been weighing whether the deal serves US security interests as he faces the Oct. 15 deadline for certifying that Iran is complying with its terms.
If Trump does not certify that Iran is in compliance, the US Congress will have 60 days to decide whether to reimpose sanctions waived under the deal. UN inspectors have verified Iranian compliance with the terms.
Elsewhere in his remarks, the Iranian president suggested that the US was claiming it has been shortchanged in the deal, “which is of course wrong, because the deal has been based on a win-win framework.”
President Rouhani said Iran established its right to peaceful nuclear energy during the talks and with the nuclear accord. “This victory is not reversible,” he said.