You have to take some time initially to do some due diligence on the projects but realistically it's going to happens sometimes. Learn from it and your mistakes and move on. If it's happening every time though then you're not vetting your ICOs properly.