In Denmark it’s illegal to cross the road 10-20m (or something like that, forgot the exact number) from a croasswalk. Outside that zone you can cross as much as you want. We are though seeing fences pop up on higher traffic roads to discourage crossing, but mostly on ring roads in bigger cities, not in the cities themselves.
I did that once in a left turn. I didn’t make the green light so I stopped in the “bike left turn lane” (in front of the car lane). A second or so later when it was full on red a car swerved into the opposite lane to get past me and blasted into the intersection. Had it been a second later he would have been struck by a car.
Some idiots have absolutely no self control… I bet those 30 seconds he saved must have cured cancer or solved world hunger or something…