There is no universal solution! Scams happen all the time, from those pretty stupid and naive to very complex scam schemes! In order to be able to recognize fraud, you must first know something about it, read about it, and research... we who have been in the crypto for a long time have seen everything, and with that experience, we check some projects from all angles, if there's something suspicious we just stay away!
So how one can escape from getting scammed is to be careful and not get trapped! They can't scam you if they don't pull you into their story and you give them some money!