That depends on the jurisdiction and policy and is a choice people can make for themselves.
It certainly isn't always worth it, but in the event that it isn't, you don't need a law to prohibit it because it's already not something people have the incentive to do.
And if they're doing it anyway, the assumption should not be that they're idiots who need to be prohibited from doing something they apparently choose to do of their own volition, it's that they maybe know something more about their own circumstances than far away bureaucrats do.
It certainly isn't always worth it, but in the event that it isn't, you don't need a law to prohibit it because it's already not something people have the incentive to do.
And if they're doing it anyway, the assumption should not be that they're idiots who need to be prohibited from doing something they apparently choose to do of their own volition, it's that they maybe know something more about their own circumstances than far away bureaucrats do.