Learned about the concept through bad purchases.
Then started doing my research on games I was interested in and found that there is generally enough information out there to figure out if a game is worth it or not.
Now I just make blanket assumptions, IE: If it's got a Nintendo sticker on it, it's probably not worth what it's being sold for.