President Trump Donald John TrumpSteele Dossier sub-source was subject of FBI counterintelligence probe Pelosi slams Trump executive order on pre-existing conditions: It 'isn't worth the paper it's signed on' Trump 'no longer angry' at Romney because of Supreme Court stance MORE on Wednesday came to the defense of border agents and scoffed at Democratic lawmakers' furor after an internal watchdog report found detained migrants are living in dismal conditions in federal detention facilities.

In a series of tweets, Trump credited Border Patrol with doing a "great job" and going "above and beyond." He blamed Democrats and existing immigration laws for ongoing issues at the border.

ADVERTISEMENT

He further claimed that many immigrants detained in the overcrowded facilities are "living far better now than where they came from, and in far safer conditions."

"No matter how good things actually look, even if perfect, the Democrat visitors will act shocked & aghast at how terrible things are. Just Pols," Trump tweeted. "If they really want to fix them, change the Immigration Laws and Loopholes. So easy to do!"

Our Border Patrol people are not hospital workers, doctors or nurses. The Democrats bad Immigration Laws, which could be easily fixed, are the problem. Great job by Border Patrol, above and beyond. Many of these illegals aliens are living far better now than where they..... — Donald J. Trump (@realDonaldTrump) July 3, 2019

.....Now, if you really want to fix the Crisis at the Southern Border, both humanitarian and otherwise, tell migrants not to come into our country unless they are willing to do so legally, and hopefully through a system based on Merit. This way we have no problems at all! — Donald J. Trump (@realDonaldTrump) July 3, 2019

A short time later on Wednesday, Trump added: "If Illegal Immigrants are unhappy with the conditions in the quickly built or refitted detentions centers, just tell them not to come. All problems solved!"

If Illegal Immigrants are unhappy with the conditions in the quickly built or refitted detentions centers, just tell them not to come. All problems solved! — Donald J. Trump (@realDonaldTrump) July 3, 2019

A report released earlier Wednesday from the Department of Homeland Security’s Office of Inspector General described squalid and overcrowded conditions at detention centers, while reporting little progress in recent months by the Border Patrol and Customs and Border Protection, its parent agency.

The report described standing room only cells for migrants, who were not fed hot meals or given showers. The centers also continue to hold children, some of whom are showing up at the border unattended.

Democrats expressed outrage over the treatment of migrants after a group of lawmakers traveled to the border earlier this week to tour one of the holding centers in Clint, Texas.

A ProPublica investigation published Monday provoked additional fury when it detailed a Facebook group for current and former Border Patrol agents that was filled with derogatory posts targeting migrants and Democratic lawmakers.

Acting Homeland Security Secretary Kevin McAleenan said Wednesday he has ordered an investigation into reports of the vulgar messages.

Updated at 4:26 p.m.