Swimming pools should be fenced to protect children from drowning, but teaching children to swim is even more important.
Background
Pools should have fences to protect kids from drowning, but even more important is that we teach children to swim.
This principle applies even more generally to childrearing. (what principle? Protecting them from X is good, but teaching them to handle X safely is even better)
While it's good to restrict access to soda / candy,
Setup
it's even more important to teach them ...
Evaluate / Goal
... "how to swim" with soda and candy?
We need to Complete the Analogy, figuring out what the equivalent of "teaching children to swim" would be when it comes to soda / candy.
Restricting access to soda / candy matched up with building a fence to restrict access to a pool.
So we're looking for whatever the "teach them how to swim" equivalent would be with .