[WIP] check integer number range in vistor 

hi @Alefas, I think it's a better version now. could you go through it?
Also I cannot get the test running for now, test cases will be later.
This is unrelated issue to this PR, of course it's ok.