Does this gives a free hand to scammers as they know that they cannot be punished by a court of law

Unfortunately, yes. There are no checks and balances in place anywhere, so while legitimate users' accounts are being shut down by exchanges who proceed to keep the money, there are also individual scammers (the high-tech thieves) who steal from people for a living, and nobody from the crypto platforms to the social media apps to the countries are doing anything to quash it.
I monitor the methods of fraud in my country.
There are a lot of phone scams in which the scammer asks the victim to transfer money to another account. It can be a transfer of money to a drop account or a purchase of a cryptocurrency, but it is impossible to fight against this, because the money will be quickly cashed out. All banks have instructions on how not to become a victim of a scammer, but fools still believe phone scammers.
For this purpose, Binance insists that all P2P communication should happen on the Binance chat window and not take that conversation out of the Binance to any third party platform. If the buyer or the seller asks to have a phone call where he tells another account[ s] to transfer the money, Binance can have no control or proof on this and in case of dispute/scam, Binance may not be able to help the victim.
Yes, the government won't be able to help either because of the no legalization of cryptocurrencies, but we have to take as many precautions ourselves to prevent any sort of fraud or scam with us through P2P platforms.
This does not protect against fraud. The fraudster will find the victim in the telegram, and then on the purchased account on the Binance exchange, he will find an application for the purchase of cryptocurrency.
The scammer will give the victim the details of the P2P partner of Binance and the victim will transfer the money to specified bank account. Binance will unlock bitcoins and the scammer will disappear.
Then the victim will write a statement to the police about the P2P participant in the Binance deal.
Well, the government will only help you in this case, if the crypto currency legal in that country. If crypto is not legal, and you will go to the police for any help which happened in P2P scam, they will first question you as why you are dealing in crypto which is not legal. This can go against you if the government is very strict in your country.
That is another reason where the P2P scams are not being reported or registered as people fear to tell all this stuff to the law enforcement agencies and the scammers at P2P know this fact and they do not fear in trying to scam the people involving in P2P through binance or other exchanges.
If P2P cryptocurrency exchange is prohibited in your country, then this does not prohibit you from buying cryptocurrencies on P2P marketplaces in other countries.
But usually there is a lot of fraud in those countries where P2P cryptocurrency exchange is not prohibited, and since it is impossible to find a scammer, the police close the criminal case, and the participants in the transaction are forced to negotiate with banks or solve their problems in court.