It’s technically only illegal here in the US if done unsafely, too. So if there were no cars in sight, walking through a red light is ok. Crossing somewhere other than a crosswalk is also okay. Walking out into busy traffic without even looking is illegal. Also stupid and dangerous.