On the range of a constrained random walk