Reaching table limits

So I’ve got a weird situation going with reaching the table limits on x axis. If I home the machine, and zero the machine. Then take the x axis to the x+ limit and hit the go to zero button it stalls the motor out. If you home the machine again and take it a couple feet off the y home and then x+ limit again. Go to the zero button it goes back to home fine. Any ideas