Research. No way to be 100% certain, but read whitepapers, talk to devs, etc. The less info you can find, the greater likelihood of a scam.
Totally agree. Check the Bios of the team and make sure they have some background in the space their ICO idea is based on. And also make sure their idea works with the blockchain technology.