There are a couple of ways to handle it. You could bulldoze the stairs out of the way to give yourself a clear, flat surface to paint, or, if you would rather not, simply stand beside the stairs and paint the wall from there. The second option takes a little more care but saves you the demolition.