Laws that rounded up those savage native americans to be put on a reservation were ok? After all, to live in a society we have to make sacrifices.
Laws that sterilized tens of thousands of undesirables during the 20th century were ok? After all, living in a free society requires scarifies.
There is a difference in living in a society and living in a free society.
Your arguments aren't making any sense, they are all over the place.
To live in a society you need to make sacrifices. That does not mean that any and all laws that force you to sacrifice freedom are a good thing. Vaccination laws easily meet the standard of what is good, however.