How to scale an object relatively to the distance of its edges?
Not sure if this is what you need.

Enable edge length in the overlay



Add an edge between the two points. You can do this with fill f to make sure it does not split the mesh at all.



Scale the whole object s and hold down the shift to be more precise. Stop when you get to the correct length and then delete the edge you added.