What's moral vs what's legal aren't always the same thing. Especially in times like this, they get very quickly divergent.

To the parent poster's point, the obligation of the citizen in a democracy (at least in theory) is to try to align those.