You cannot have a right to rebel against that which grants the rights. If the government is what grants rights, then there is no problem with any rights violation as long as they declare you don't have that right.
But we tend to agree that rights are not granted by the government, and while we may not agree what does grant it, the right to rebel against that which does not grant rights does still exist.