You need to verify that the device is not SIM unlocked or attempted IEMI blacklisting by the carrier.
This depends on how much information the retailer has provided about the device. It's probably more efficient to talk to your retailer than to ask here.
In my case, I bought used Pixel 7, and the seller confirmed that it was legitimately purchased from the Google Store. (Note that P2P sales can be unreliable.)