Is not possible for all ICOs to be scams,we still have good number of them that are very genuine. What an investor need to do is to investigate well on a project before investing.
That has to be the golden rule - investigate.
Not all ICOs are scams but there are too many out there.