The correct preposition here is "against." The sentence should read: "I had the room painted. So, please don’t lean against the walls." This is because "lean against" is a common phrase used when referring to resting something or someone on a vertical surface.