Whenever I see barriers like this I always think they should be “car centric” and not “pedestrian centric”.
Cars drive through this area like nothing changed on their route, pedestrian then are met with large barriers.
It should be the other way around. Control the flow of car traffic to make it safer for both parties (cars and pedestrians). Then priority becomes about active travel like pedestrians walking or cycling.
Location is close to Robion, France.