How to buy tech online and not get ripped off

It looks like an iPhone and it’s as expensive as an iPhone... but is it really an iPhone?