Prevent movement too far up/down