There are many ways to find out that ICO is a scam. You can see it by checking the background of admins and founders. Here you will see if they are transparent and they are true of their project.
All investment is risky so you should study it carefully so you do not lose the money you earn.