I think these scams could affect on crypto reputation, as many newbies, especially reach ones would like to make a house on firm and safe ground, I wonder how we can help to reduce scams on DEXes?I know with code analysis we can guess that more likely but what about those ones who don't know the coding that much? how we can find out potential scams before they pull the rug?
The only answer to your is to DYOR before investing to unknown project just like what others suggesting above. As you already mention, It's impossible to check the all the code of each project just to determine it as a scam because there are so many criteria to consider in coding for that since there are different ways to scam.
There's a basic principle on determining scam project.
If it's too good to be true, It's scam
Anonymous team, High chance of scam
Bullshit Whitepaper, Scam
Garbage website and half arse marketing, project will fail that result to exit scam.