Well, it wouldn’t be the first time that a law with good intentions has prefaced a loss of freedom
Balancing these goals is not easy, but we don't get to avoid it just because we want "freedom" as an abstraction. It's an important consideration but only one when you put a lot of people with conflicting goals together.