Min-max property in metric spaces with convex structure