It is safe, but because they have different rules. Vehicles must give way at all times, so they will drive around you. And drivers are aware of what is going on, because they have to be. I think driving in Vietnam is much safer than the US.
I think it is "safe" only in the sense that people are more expendable in third world countries. Probably poor people who don't have cars and have to cross streets on foot are even more expendable.