Trump ordered part of border closed, his administration pushed back: Sources

His order reportedly came a day before he tweeted a threat to close the border.

The order came during a tense Oval Office meeting on March 28, just one day before the president publicly threatened to close the border the following week.

The president's order sent White House aides scrambling to convince him not to close it, and that day they were able to convince him to keep the border open for a week so that the administration could craft an emergency plan.

"The president was literally hours away from sealing the border last week. Hours. But he was persuaded to delay, which gave enough time to consider alternatives," a senior administration official familiar with the matter told ABC News. "It also allowed Pompeo and Nielsen to ratchet up the pressure on Mexico, which started taking tougher action, though they didn't publicize it."

The incident -- while the threat was never carried out -- demonstrates a penchant for making snap policy decisions that are a times at odds with the thinking of a majority of the administration.