The gas limit, or transaction fee limit, can be set in MetaMask using the settings tab. In advanced options, you can set the maximum gas fee you are willing to pay for a specific transaction.