Illegal presence (being here undocumented) is a civil matter. Illegal entry (the initial act of crossing the border) between ports of entry is a crime.