There is no way to stop a cat from getting to a place it wants. I guess this cat had to get a better view of the neighborhood. (you know why.)
Seriously though, Climbing practice is good for cats. It can improve their strength and flexibility and teach them an important defensive skill. Let them!