Use np.iinfo to figure out int min/max values
TST: unit test to reproduce #2599 on some platforms