President Trump on Sunday called the New York Times “The Enemy of the People!” for reporting that a deal Mexico worked out with the administration that allowed him to pull back on a new round of tariffs on Mexican imports had been negotiated months ago.

​”Another false report in the Failing @nytimes. We have been trying to get some of these Border Actions for a long time, as have other administrations, but were not able to get them, or get them in full, until our signed agreement with Mexico​,” the president wrote on Twitter.

Trump continued that Mexico for years had not been cooperative in talks about the border but he said he spoke to President Andres Manuel Lopez Obrador and believes he wants to “get the job properly done.”

The president also signaled that there will be more announcements “at the appropriate time.”

He also cautioned that if Mexico doesn’t carry through on its promises, “we can always go back to our previous, very profitable, position of Tariffs​.”

​”But I don’t believe that will be necessary. The Failing @nytimes, & ratings challenged @CNN, will do anything possible to see our Country fail! They are truly The Enemy of the People!​,” the president wrote in the last of four postings on the matter.​

Several hours after Trump’s tweets, the newspaper responded, saying it was “confident in our reporting.”

“And as with so many other occasions, our stories stand up over time and the president’s denials of them do not. Calling the press the enemy is undemocratic and dangerous,” said the posting that included a link to the report.

Last Friday, Trump announced that a deal had been reached with Mexico to avert imposing a series of 5 percent tariffs on Mexican goods beginning on Monday that would have eventually reached 25 percent.

The Times on Saturday reported that one of the components of the deal – Mexico agreeing to deploy its national guard troops to the Guatemalan border – had been decided on in March during discussions between former Homeland Security secretary Kirstjen Nielsen and Mexico’s Interior Secretary Olga Sanchez.