A suicidal man who was shot seven times by cops in Queens on Sunday still had the strength to taunt the officers — saying, “I should’ve done this in Texas, they shoot better,” law-enforcement sources told The Post.

The man, who was naked from the waist down, was expected to survive, sources said.

The 34-year-old suspect, identified by sources as Jarrell Davis, first slammed his car into an empty police cruiser just yards from the 111th Precinct station house at the corner of 215th Street and Northern Boulevard around 3 p.m., said NYPD Chief of Patrol Rodney Harrison at a press conference at the scene.

Davis then got out of his car, doused it with a flammable accelerant and sparked it up, officials said.

He also allegedly sprayed the police cruiser but was not able to ignite it.

Several officers came running from the precinct as Davis whipped out a bloody, 12-inch kitchen knife, authorities said. Two cops fired a total of eight shots at him when he refused to drop the blade, sources said.

Police didn’t know where the blood on the knife came from.

Photos show the fire-gutted skeleton of Davis’ SUV sitting in a crosswalk directly outside the precinct.

“When I see something like that, I say, ‘Wow, this guy’s crazy,” said one witness who declined to give his name.

The incident snarled traffic on Northern Boulevard, giving witnesses a front-row seat.

“We were sitting on the bus for a while, but we couldn’t go anywhere so we just got off,” said a 16-year-old girl who gave her name as Alyssa W. “The whole car was up in flames. There was a lot of smoke.”

The NYPD tweeted, “Please avoid the area of Northern Blvd and 215 St in Queens due to a police investigation. Expect emergency vehicles and traffic in the area.”

The suspect was treated at ­NewYork–Presbyterian Hospital Queens, while the two officers were held for observation at North Shore University Hospital, sources said.

The NYPD’s response to emotionally disturbed people has come under increased scrutiny in recent years after several highly publicized shootings.

Cops shot Harlem man Michael Cordero once in the hip on March 5 after he pointed a wallet at them pretending it was a gun.

And the city awarded $2 million Thursday to the widow of an emotionally disturbed cabbie who was killed in a hail of police gunfire in 2012.

Additional reporting by Allie Griffin and Max Jaeger