Validate limit expression as integer
Validate offset expression as integer
Extract common code for expr type validation