You can avoid scam ICOs by just making your own research first before investing in one ICO or before joining their advertisement bounty campaign, just look and analyse their white paper if the project is realistic and the team must be real and trusted.
Here some thread that can help you, see the link below.
https://bitcointalk.org/index.php?topic=3329803.0