In all public works within New Mexico, whether constructed or maintained by the state or by a department, board or commission of the state or by any political subdivision of the state, or in any construction or maintenance to which the state or any political subdivision of the state has granted aid, preference shall be given to materials produced, grown, processed or manufactured in New Mexico by citizens or residents of New Mexico. In any case where, in the judgment of the different officers, boards, commissions or other authorities in this state vested with the power of contracting for material used in the construction or maintenance of public works referred to in this section, it appears that an attempt is being made by producers, growers, processors or manufacturers in the state to form a trust or combination of any kind for the purpose of fixing or regulating the price of materials to be used in any public works to the detriment of or loss to the state, the provisions of this section shall not apply.