Usually a airline employee – not a government official – is all that stands in the way of a plane load of arriving passengers becoming illegal immigrants.
Terminal D at Dallas Fort-Worth is the international terminal, but it’s used for domestic flights too. Whether or not you’re directed to immigration and customs depends on which doors are open or closed when you get off the aircraft.