necessity is the mother of invention and barb wire
I came across this apparent attempt to prevent trespassing atop a building.