Don't lean against the wall.

Literal

Wall [against-に] lean-against [negative imperative-な].

より掛かる means 'to lean against.' The negative imperative な prohibits the action. A direct prohibition — no softening particles, no please. Likely a sign, a parent's instruction, or a guard's command.