How would a random person have standing?
Yes, the alleged "situation" may have been contrived, but that doesn't change whether they have standing to sue their state to challenge what they see as an unconstitutional law.
Do you think their only recourse should be to break the law, and risk the penalties associated with that if it does turn out to be constitutional?
https://harvardlawreview.org/print/vol-136/standing-in-the-w...
1. https://adfmedialegalfiles.blob.core.windows.net/files/PreEn...