Rouhani said in the current situation, the friendly countries should stand beside each other and expand relations.
Since it unilaterally pulled out of the deal in May, Washington has told other countries that they must halt all imports of Iranian oil from November 4, or face U.S. financial measures.
Iranian President Hassan Rouhani said in a meeting with North Korean Foreign Minister Ri Yong Ho on Wednesday that the U.S.is an "unreliable" country and can not be trusted.
Anti-government demonstrations have spread across the country in recent months, from Iran's heartland to dozens of cities, including the capital of Tehran, as citizens grow increasingly disillusioned by the weak economy, strict Islamic laws, and chronic drought.
US officials have said in recent weeks that they aim to pressure countries to stop buying oil from Iran in a bid to force Tehran to halt its nuclear and missile programs and involvement in regional conflicts in Syria and Iraq.
U.S. Central Command head Gen. Joseph Votel said he believes that the exercise was meant to be a message to Washington over re-imposing economic sanctions on Iran.
"These are the most biting sanctions ever imposed", Trump tweeted on Tuesday.
Mohammad Javad Zarif told the Iran newspaper that President Donald Trump's goal of forcing the rest of the world not to buy Iranian oil was impossible.
Rouhani hinted last month that Iran could block the Strait of Hormuz, a major oil shipping route, if the US attempted to stop the Islamic Republic's oil exports.
So it was working, and by stepping away from a pact that took years to negotiate and imposed important concessions on Iran, the Trump administration was making it less likely that Tehran wouid come to the negotiating table again soon, they say. "We can't get drawn into a confrontation with America by falling into this war room trap and playing on a battlefield".
Europeans, also signatories to the JCPOA agreement, have said they are determined to save the text, with the EU saying on Tuesday it aimed to "protect European economic operators engaged in legitimate business with Iran".
"We are in solidarity with the European Union position, obviously we are closely monitoring this and we are doing everything possible on the diplomatic level to stimulate a direct dialogue between the United States and Iran, and we think that dialogue should always prevail", he said.