You are right. There are lot of scam ICOs. So you should learn how to analyze ICO before investing. In any ICO you should check the project first. What are they want to do, if it has any potential. Also see their private sale and pre sale progress. How successful they are in those events. Read their whitepapers. Good ICO will deliver top notch presentation. Also investigate the members.