People don't cross tracks for fun. They cross when there is something on the other side. Thus good city design (look up desire paths!) will ensure the places people really want to cross are safe and they can leave everything else alone. The picture is too small to get a clear picture of what all is around the track, but I see no indication there is any reason for anyone to cross in this area.
There's no need to do this. At the station and at sensible points between are traffic lights which switches to green right after you press the pedestrian button and railings between them to prevent people walking on the rails. So they cross the tracks there and not everywhere.
In more urban parts the tracks are either directly on the road and obviously no greenery or the tracks are sepetated by railings and sometimes a "wall of green". But in the city we are also encouraged to not do this by having walking ways away from traffic (parks, inner city) and the traffic going around it.
E.g. I prefer to walk in the bike street with the huge shady trees and the nice old facades instead of the hot and busy main street on the other side of these pretty houses. If I need to go to another part of the city I'll use the nice street until I can use a tunnel to cross the street and then again use a less busy street to continue my walk.