Yes, it is safe to buy from StockX.
Sellers must send all purchased items to StockX authentication centers where they are first inspected and verified by StockX before being shipped to the buyers.
With its extensive authentication process, and its role as a responsible middleman between sellers and buyers, StockX has garnered a general reputation for trustworthiness in the resale industry.
Mentioned in this answer

StockX
Stock market for buying/selling limited edition sneakers