unity switch object between 2 paths

Hi, Please forgive me this might be the noob post, but I need some help

Suppose that I have 2 paths each made up of 4 points like in the picture below, they are in a 3d space. The green circle is the object that will move along the paths.

I was able to make it work using Vector3.MoveTowards but the problem is that when I switch paths the object moves from 1st path to an other(next point in the 2nd path) I dont want that I want the object to immediately switch path/lane like in the picture above I want the object to move to X-marked position and then continue to MoveTowards the next point.

Well I could see how switching out of the small rectangle instantly would work, but switching out of the large one to the small one, when you haven’t reached its starting point, or you’re past its ending point, on a given axis, would cause conflict.

Perhaps you could switch to equivalent distance using Vector3.Lerp?