Its never 100% safe to invest in an ICO but if you do the following you will have a better chance of finding a good ICO. You should always read the whitepaper of the ICO you are planning to invest in. See what their vision is, if they are following their roadmap and if they are responsive. Also check out the expertise of the team members.
As far as investments are concerned, you should diversify in order to cut your loses.