there is no world where whoever just wants to study math can just go study whatever they want for as long as they want, regardless of how well they do it.
Certainly in Sweden, once you're in, you're basically free to hang around at University and study for as long as you want. It's not like they're going to kick you off campus.