Ensure ranges are non-overlapping