people who know anything about law, Is it illegal to buy something from a scammer?

If I understand you correctly it is illegal to accept stolen property. You can try to claim you were unaware, but if it seems like you should have known (like, you bought a brand new, boxed-up TV really cheap out of some guys van, you should have known it was stolen goods) you’ll probably be charged.