REST API - problem with first being greater than max

I am trying to retrieve all users belonging to a group, by using the REST API

curl --location 'https://auth-test.mycompany.dk/admin/realms/xl/groups/CF/members?first=0&last=1&max=5' \
--header 'Authorization: Bearer XXX'

As there are many users, I want to retrieve them in pages, so I start by setting first to 0 and max to 5, as I want each page to contain 5 users.

This is going fine when first is lower than max, but when first is 5 or greater than 5, then no users are being returned.

I am using KeyCloak version 24.0.3.

Is this a known issue?

Br,

Torben Merrald