checkarg_limit function

Check limit for being integer >= 1: