Make sure that Serial Number in the device under Settings > General >About matches the Serial Number on the box.
If it correctly reports your model of iPhone you are presented with, like model, color and capacity, and the expected expiration of warranty, it's genuine. Also check that iPhone can connect to, download and run apps from the iTunes Store.
Make sure, original owner turned off 'Find My iPhone' and completely erased the phone. Test a couple of SIM cards with it.