Embattled Venezuelan President Nicolas Maduro warned the US that it risks a Vietnam War-style quagmire if it launches a military offensive against his country — while at the same time conceding that he’s willing to begin negotiations with opposition leaders.

“We will not allow a Vietnam in Latin America. They want to put their hands on our oil like they did in Iraq, like they did in Libya,” Maduro said during a four-minute video published Wednesday on Facebook.

“I asked that Venezuela be respected and I ask for the support of people of the United States so that there is not a new Vietnam,” he added.

The Trump administration has thrown its support behind Juan Guaidó, the leader of the Venezuelan National Assembly who declared himself president last week, and imposed sanctions on the country’s state-owned oil company.

US national security adviser John Bolton alerted Maduro and his supporters that any move to intimidate or target American diplomats or Guaidó in the South American country would be met with a “significant response.”

A week into the crisis, Maduro said he is willing to talk with Guaidó.

“I am ready to sit down at the negotiating table with the opposition so that we could talk about what benefits Venezuela,” Maduro said in an interview with Russian state media.

He also suggested that other countries — including Mexico, Uruguay, Bolivia, the Vatican and Russia — could act as mediators.

Russia, Turkey, Iran, Cuba, Bolivia and El Salvador back Maduro.

President Trump, noting the unrest in Venezuela, issued a warning on Twitter about traveling there.

“Maduro willing to negotiate with opposition in Venezuela following U.S. sanctions and the cutting off of oil revenues,” Trump posted on his Twitter page. “Guaido is being targeted by Venezuelan Supreme Court. Massive protest expected today. Americans should not travel to Venezuela until further notice.”

Guaidó has called for nationwide walkouts Wednesday after the Maduro administration barred him from leaving the country.

With wire services