Installation and method for refrigerating and/or liquefying a fluid