There is no supernatural way of avoiding scam than using your research skills, you have to believe in yourself after doing a good research on projects and only use funds you are ready to lose, a project with good utility and blockchain expert as team will always do well, take risks on such projects and avoid others.
Actually, there is no guarantee that you can actually avoid fraud, even if you do research.
but at least by doing research we can get information about the project in detail and that is very helpful for sure,
The most important thing is to consider before taking the risk