I always read it as having a conditional...
A well regulated Militia, being necessary to the security of a free State, the right of the people to keep and bear Arms, shall not be infringed.
So, given that well regulated Militia is necessary to ensure the secuirty of the state, everyone...