U.S. Immigration and Customs Enforcement agents arrested an illegal immigrant from Honduras on assault charges moments before he was set to board a flight out of the country last week.

McAllen police called ICE agents to intercept 31-year-old Andres Roberto Ortiz about an hour before his scheduled deportation on Feb. 9 over evidence that allegedly links him to the aggravated assault of a McAllen, Texas man last month, the Brownsville Herald reports.

“Ortiz’s arrest come more than a week since officers responded to a rollover crash Jan. 30 at about 12:30 a.m. near the 3100 block of westbound Frontage Road after witnesses reported a driver crashed an SUV into a canal and fled the scene,” according a police statement cited by the news site.

Police found the SUV’s owner – a 56-year-old man who had been badly beaten – at a home on West Kennedy Avenue and later determined Ortiz attacked the man and stole his vehicle after arriving on a bus from Houston the same night. The victim remains in critical condition.

Police believe Ortiz has a history of criminal behavior and has been deported multiple times, KFXV reports.

According to Breitbart:

U.S. Border Patrol agents arrested the illegal immigrant in connection with an unrelated case and had turned him over to U.S. Immigration and Customs Enforcement. McAllen Police contacted ICE and learned that federal authorities had scheduled the man for deportation. The federal agency transported Ortiz back to McAllen and turned him over to local authorities so he could be prosecuted for the latest charge.

Ortiz was charged with one count of aggravated robbery, which could be upgraded to capital murder charges if the victim dies, the Herald reports.

The aggravated assault, a first-degree felony, comes with a potential life prison sentence.

While Texas ICE officials nabbed Ortiz on his way out of the country, Border Patrol agents in Calexico, California arrested a previously deported and convicted killer as he attempted to come back into the country.

Agents with the El Centro Border Patrol Station intercepted two men walking north from the International Border fence near Calexico on Sunday and soon realized they apprehended one bad hombre.

“Border Patrol agents conducted records checks which revealed one of the men, 56-year-old Humberto Vasquez-Alonso, a Guatemalan national, was convicted in 2003 for felony homicide and was sentenced to a 12 year prison term,” according to a U.S. Customs and Border Protection statement.

CBP officials contend Vasquez-Alonso will now face a charge of re-entry after removal as a convicted felon.

“This arrest of a convicted felon demonstrates the importance of the mission of the Border Patrol,” Assistant Chief Patrol Agent David S. Kim said. “The hard work and dedication of our agents is a shield for our communities against a threat like this.”