In your node setup, you are just shifting the first and last point after it has been evenly distributed by the Resample Curve node, therefore it is not evenly distributed any more.
The key is to shorten the curve before you resample it but I also recommend to use the Trim Curve node instead of selecting and repositioning the endpoints. This way you don't have to worry about which way to move them.

