The idea is to vote as a Dem in the primary to hurt the reelection chances of the gun grabbing nutcases, picking their Dem opponents. The general population is overwhelmingly Dem, Pubs have virtually no representation. The only way to hurt them is to primary them out, and in MD, the primaries are closed, so you have to register as a Dem.
Got it, thanks! :)