means that
an undertaking cannot succeed when its demands exceed the capacity of the available resources; a quart is twice the volume of a pint.
Imagine a case where it is not possible to fit something into a smaller space; It is used to show an attempt to do something impossible.; then “You can’t get a quart into a pint pot,” fits well.