As everywhere in Indonesia, curbstones are probably not only to keep cars and motorbikes of the pavement. They also help maintaining the traffic on one side of the road when a crash occurs. See how nice the street is paved now. It has not been used however.