Rights aren't about "going after those who do us wrong". It's about establishing a relative framework by which we can try to mediate differences in opinion about whose liberties are more important in this or that situation.
Codifying something as a "right" is basically just society's way of signalling that this particular area is one where we all agree we're going to be very reluctant to step on people's individual liberties. But that doesn't mean that there are NO situations where those liberties can be impinged. Incarceration is one example.
You seem to draw a hard distinction between rights and regulation, but they're really just two tools in service of the same goal.