It's absolutely clear. Your intent is obvious. Let's say I omit the comma in the first part and suddenly it says the militia has the right to bear arms. Grammar is important if you wish to be taken seriously.