Maryland was not invaded. MA and other state militias were simply trying to transit MD to get to DC, as requested by the President, which is entirely constitutional.
With VA seceded, do you have suggestions on how troops from other states were supposed to reach and protect the greatly threatened national capital without crossing MD?