Here are four smart ways to avoid lemons and find a secondhand device that’s actually worth the price