First you have to check bill, accessories and IMEI number to safe yourself from fraud or duplicates product.
after that u have to check body of mobile and every port check with plugged in after that sound quality all sensor by app or settings.
You can buy second hand product from trusted website to protect your money.
You should also compare rate new vs second hand product.
Follow this step to secure buying.