In short When a project's creators drain the liquidity or sell their holdings and abandon it, leaving the token worthless.
Warning signs include anonymous teams with unlocked liquidity, contracts the owner can change, and a handful of wallets holding most of the supply.