Can custom properties be allowed to go to infinity?
Going off this answer, you can just input 1e39 to get inf, since Blender will clip it off to float_info.max.  Likewise, you can use -1e39 to get -inf.  (If those don't get you inf values, just raise the exponent after the e until they do.)