Hmm... Still not working. The person is still going through the stairs. Is there anything else I can try?
I've managed to do it one way. It's kind of buggy, but it works, at least.
It sets a Diagonal Line solid, and then disables it if you are in a certain place. It doesn't work too well, and glitches out when you jump.