Which makes crossing the border illegally a matter for civil law enforcement and not the military.
and not US citizens and therefore are indeed foreign enemies and are also invaders. They are subject to military action and subsequent destruction.
Actually, they aren't. They are criminals; they are not members of a hostile armed force. There is a significant difference between the two, and that affects what we can legally do about the situation.