Add an option that makes it possible to ensure that the last point is exactly for Tmax; make sure that we never exceed Tmax

Also try with `(1.0 / 2.999999)`, it should fail in the current state.