Look through this post about slope angles:
http://forum.thegamecreators.com/?m=forum_view&t=197138&b=1
A logical solution to your problem, is to calculate the X angle between current position and the new position; based on your current control system; but only move to the new position if the angle is in your desired range.
Consider also the Atan full command, which calculates the angle between two locations:
Angle# = AtanFull(x2-x1,y2-y1)
Consider also another solution; limit the height of which your player can step up. So, if the difference in location on the Y axis is greater than the maximum step height, do not move to the new location. In coding terms:
If PlayerWalking And ( NewTerrainHeight# <= OldTerrainHeight# + MaximumStepHeight# )
` Move the player
EndIf