Don't climb the fence.

Literal

Fence [on-に] climb [negative imperative-な].

登るな is the blunt negative imperative: 登る ('to climb') + ~な for direct prohibition. The kind of curt warning you'd see on a sign at a construction site or hear from a parent stopping a child. The plain dictionary form of the verb is required before ~な.