It seems you did not research on the project you invested in. Although, research sometimes might not guarantee 100% scam free, because some projects can still disguise to be real. Notwithstanding, if you research every project you invest in, the probability of getting scammed will be low.