It's well-described and discussed in this thread.
Basically when a stepper control hits max it should stop, and not wrap around to min. Also the opposite, where a stepper hits min it should stop and not wrap to max.