My question is if the government legalize cryptocurrencies are means of payment,
Only a few Governments may legalize crypto, like you saw the case with El Salvador. So many Government will not Legalize cryptocurrencies for obvious reasons. One of them is that they have no control over the cryptocurrencies like Bitcoin.
Maybe what we shall see in most counties are Central Bank Digital Currencies (CBDCs)