Assert that `$limit` is a positive number.