How can you pardon what has not been adjudicated?
Gerald Ford pardoned Richard Nixon for his actions in Watergate even though he was never charged with a crime.
The precedent is there, plus we know anyone who has crossed the border in the last 4 years is illegal and could be charged with a crime.