You can attack people on stairs if they are there, however you cannot attack stairs if there is no one there.