Make negative integer test always done for Int to SymInt (#83815)
Otherwise, it would be easy to trigger arbitrary memory access
by passing a sufficiently negative integer to the API.
Signed-off-by: Edward Z. Yang <ezyang@fb.com>
Pull Request resolved: https://github.com/pytorch/pytorch/pull/83815
Approved by: https://github.com/Chillee