A tax is a disincentive, not a restriction of freedom. As in, if you want that sugar, you will pay extra for it due to the increased strain on the healthcare system you likely will add to down the line. You can still consume as much as you want at the end of the day.