Guard against going into negative X or Y.