More accurate logic in Interval checking for real or infinity