you can turn off soft limits like this:
but then your sled can go out of bounds in the x and y dimensions, not just z. You turn soft limits back on by setting it back to 1.
The z axis maximum travel default is 25 mm. You can change it with $132=100 or 200, but be aware that if you have a physical limit, it won’t stop trying to get past it if your gcode tells it to go past.