The second amendment doesn’t exist to enshrine your ability to rise up in armed rebellion against the government. It exists because the states needed the legal federal protection to maintain standing militias to… get this… quell armed uprisings against the federal government (specifically those led by slaves and native americans). At the time, the national military just wasn’t up the task of responding to things like that, so they empowered the states to maintain a militia by agreeing that they would never keep the people from being able to bear arms.
Read a fucking book. God dammit.