The story has multiple different meanings, and lets you interpret it the way you wish.
Are commas in these sort of examples optional? As written it has a clear subject that isn't repeated but is still not independent as written.
Your dental habits are awful, but if you brush and floss every day, you probably won’t get cavities or gum disease.
The conjunction but is connecting an if/then construction, but as a whole why is the section classed as dependent? As 'you probably will not get cavities or gum disease' is independent as written ?