toprail
/ˈtɒprɛl/Definitions
1. noun
A horizontal or sloping bar or beam, typically of wood or metal, fixed above the top of a fence or wall to prevent animals from climbing over.
“The horse easily jumped over the top rail of the fence and escaped.”