(CNN) Iran's foreign minister warned that President Donald Trump's threats to pull out of the Iran nuclear agreement send a "very dangerous message" about the wisdom of negotiating a deal with the United States.

Speaking to reporters in New York, Mohammad Javad Zarif said the United States has failed to implement its side of the nuclear pact between Iran and six major powers. Under the deal, which went into force in January 2016 when President Barack Obama was still in office, Iran agreed to put limits on parts of its nuclear program in exchange for the termination of all nuclear-related sanctions.

"That's a very dangerous message to send to people of Iran, but also to the people of the world -- that you should never come to an agreement with the United States because at the end of the day, the operating principle of the United States is 'what's mine is mine, what's yours is negotiable,'" he said. "The situation is creating an impression globally that agreements don't matter."

Zarif, in town to attend meetings at the United Nations, said if Washington leaves the deal, Iran has many options to consider, including complaining through a dispute mechanism set up in the agreement, simply leaving the deal and restarting its nuclear activities, or more "drastic measures," which he declined to specify.

"We will make a decision based on our national security interests when the times comes," he said. "But whatever that decision will be, it won't be very pleasant to the United States."

Read More