Neither of those ideas would stop a massive out break of Mexico from being spread into the United States by thousands if not millions of fleeing Mexicans trying to out run the disease.
The idea of closing and militarizing the border isn't to stop Illegals, but to keep the virus from breaking out on a massive scale over here by so many people fleeing their country.