Clamp usermin and usermax to max_uid if they are out of bounds for q6