Liquid sugar is bad for teeth, but nowhere near as bad as something like potato chips. Food remnants that are high in carbs that get stuck in your teeth and then break down into simple sugars cause way more problems.
Personally I didn't really understand that properly until either my late twenties or early thirties.