How to block 3D/2D Fighting Game Camera when players reach de max distance

I’m using a camera made using this Tutorial:

But when one of my Characters reach the Max Distance beween them, the other one will get 'dragged along.
How to make the Camera Stop Moving until the Charaters get once again under the Max Distance?