Like most rights, the Second Amendment right is not unlimited. It is not a right to keep and carry any weapon whatsoever in any manner whatsoever and for whatever purpose.
While these words do appear in Heller, it's become a fad to take them out of context and misinterpret "not unlimited" to mean "We can impose any limit we want.". That's not what SCOTUS said.
Let's take a look at what the Court DID say. All text in italics is contiguous on page 2, DC v Heller. Emphasis added.
United States v. Miller ... does not limit the right to keep and bear arms to militia purposes, but rather limits the type of weapon to which the right applies to those used by the militia, i.e., those in common use for lawful purposes.
Here the court clearly states that the right applies to weapons in common use for lawful purposes. In the very next line they then state the famous phrase:
2. Like most rights, the Second Amendment right is not unlimited. It is not a right to keep and carry any weapon whatsoever in any manner whatsoever and for whatever purpose:
They then go on to list four examples of the aforementioned limits. Note that EVERY SINGLE ONE of them is an EXISTING law that the court sees as being beyond the scope of Heller.
For example, concealed weapons prohibitions have been upheld under the Amendment or state analogues. The Court’s opinion should not be taken to cast doubt on longstanding prohibitions on the possession of firearms by felons and the mentally ill, or laws forbidding the carrying of firearms in sensitive places such as schools and government buildings, or laws imposing conditions and qualifications on the commercial sale of arms.
Nothing about the ability to ban guns or ammunition or any sort of open ended limits. Then to make sure that it's crystal clear what weapons the Second DOES protect, they repeat:
Miller’s holding that the sorts of weapons protected are those “in common use at the time” finds support in the historical tradition of prohibiting the carrying of dangerous and unusual weapons.
It's one thing for a civilian gun bigot to regurgitate the one line from Heller they read in the New York Times, but it's unforgivable for a judge to do it while conveniently ignoring the line before it and the lines after. That's a lot of ignoring. It's not merely quoting out of context. It's downright dishonesty.