Check that the first page can not be greater than the last page.