A prosecutor ripped President Trump for playing politics with a drunk driving crash in which an illegal immigrant allegedly killed an NFL player and another man — calling his comments “ghoulish and inappropriate.”

Indiana Prosecutor Terry Curry filed four felony charges Wednesday against Manuel Orrego-Savala, a Guatemalan citizen who had been deported twice only to return, according to court documents obtained by The Post.

Orrego-Savala was drunk when he was behind the wheel and plowed into Indianapolis Colts linebacker Edwin Jackson and Jeffrey Monroe in Indiana early Sunday morning.

Curry slammed Trump and others for focusing on Orrego-Savala’s immigration status instead of the two lost lives.

“We will vigorously prosecute this matter, just like any comparable crime, not because of the immigration status of an accused, but because two innocent men lost their lives in this horrible incident,” Curry said in a statement.

“We are disheartened that ghoulish and inappropriate public commentary has politicized this tragedy. Much of such commentary, including tweets by the President, fails to acknowledge that both Edwin Jackson and Jeffrey Monroe lost their lives on Sunday. We will simply seek justice on behalf of the families of those two victims,” the Democrat added.

The rebuke came a day after the president, an immigration hardliner, said it was “disgraceful that a person illegally in our country” killed Jackson.

The president told Democrats to “get tough on the Border, and with illegal immigration, FAST!”