The Posse Comitatus Act of 1878 was passed to prevent US military personnel from acting as law enforcement agents on US soil. The Act can be overridden by the president in cases of extreme emergencies. Obviously President Trump does not consider our border situation extreme. If Trump were to override the Posse Comitatus Act, the Democrats and left leaning media would have a field day crucifying him for it.