Trump officials say the president might suspend habeas corpus. Can he do that?

The U.S. Constitution allows habeas corpus to be suspended in situations such as an invasion. The administration says illegal immigration meets that description.