It's odd but sensible. One can post signs, but that is messy and liable to loss and damage while painting the top of a fence post purple is cheap and will last years if not decades. It's only drawback is you better know what it means.
Is there a way you are supposed to paint it so people know which side of the line they're on?