MEXICO CITY (Reuters) - Mexico on Thursday dismissed a claim by U.S. President Donald Trump that it was the most dangerous country in the world and reiterated it would not fund the construction of a wall along the U.S. southern border.

In a series of Twitter posts touching on NAFTA trade negotiations and security, Trump described Mexico as “the number one most dangerous country in the world,” an assertion that was quickly rebuffed by Mexico’s foreign ministry.

“Even though Mexico has a significant problem with violence, it is plainly false that Mexico is the most dangerous country in the world,” the ministry said in a statement.

In the year through November, a total of 23,101 murder investigations were opened in Mexico, giving the highest annual figure since records began in 1997.

That was a murder rate of 18.7 per 100,000 inhabitants, well below levels in Latin American countries such as Brazil, Colombia, Venezuela, Honduras and El Salvador, according to U.N. figures used in the World Bank’s online database for 2015, the last year for which results are available.

Looking ahead to talks later this month to rework the North American Free Trade Agreement (NAFTA), the ministry said the country would put its national interest first, while seeking an outcome to benefit all countries in the pact.

Trump has suggested that Mexico could finance construction of the wall indirectly through changes to NAFTA.

“If there is no Wall, there is no Deal!” Trump wrote on Thursday, without specifying which deal he was referring to.

Earlier in the day Trump tweeted:

“The Wall will be paid for, directly or indirectly, or through longer term reimbursement, by Mexico, which has a ridiculous $71 billion dollar trade surplus with the U.S. The $20 billion dollar Wall is “peanuts” compared to what Mexico makes from the U.S. NAFTA is a bad joke!”

Mexico’s foreign ministry batted away the Twitter salvos.

“Mexico will not negotiate NAFTA, nor any other aspect of the bilateral relationship, through social networks or the media,” it said in its statement.