Much of the poem is not cast grammatically. I take 'edge' as a verb, and 'edge against a wall' would mean 'move slowly close to a wall', as if one were guarding oneself from surprise attack or were creeping up to do the same, perhaps.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.