I understand your concern, one of my friends works to the local office of a telecommunication provider and he faces several cases when people would come to him with fake iPhones to be send to service and he couldn`t help
The ideal it will be to buy it from an authorised provider or dealer, able to offer you a warranty certificate