Basically you cant,because not all the scammy ICOs are going to scam you and not all the legit projects wont,it is depends on the people behind the project if they wanted to runaway they can easily do that,especially these people arent using their real identities which is why they cant be tracked easily.