If 5 justices tomorrow determine that up is down or green is red, then so be it, because in the court's opinion, that's how it is.
I cheated after the first two pages and came to the end. I'm sorry if this has been hashed over. The COTUS, and especially the Bill of Rights have a lot of contemporaneous writings so that we don't need to guess what the intentions of the words were - the writers told us. They also provided a mechanism to change them if they were so overwhelmingly unpopular that the need arose. We are led to believe that for gun control, there is overwhelming evidence of such. If there really was, then there would be an amendment to that effect.
The notion that for the public good somehow can trump literally every one of the Bill of Rights is right that the SCOTUS anointed unto itself at some point. Lockdowns, muzzling of opposition, gun control - all on the table as part of the greater good - despite the fact the document being used to provide these anointed powers specifically prohibits them. At one point a precedent was set by those seeking to expand their power, and for some reason, that precedent now carries more weight than the document it came from.
Since there isn't an amendment, and it's not popular enough to actually pass, the courts were long ago seen as the last option. IMHO, we often hear about Obama and others described as Constitutional scholars. I believe that's clearly because they studied not to embrace it, but in an effort to defeat it, whether it's to implement gun control, limit speech, expand rights that don't exist, etc. The mental gymnastics, when looked at from start to finish, seem staggering, but it's been incremental. This is one point that I don't think the Founders recognized, or else they did but didn't seem any way to combat it - other than watering the tree of freedom with the blood of tyrants and patriots from time to time.