I remember my first purchase on aliexpress and it was defective
It looks like not a good experience, but I made next purchases and they appears to be okay.
Just keep in mind that some purchases can have issue, so don't forgot to record unboxing video and in case of issue you can attach it with video or picture which explains the issue. Usually aliexpress have fair decision.
In order to avoid issue, just make sure that the seller has a lot of orders with a small percent of issue. Be careful if the seller has a new registration or has reputation below 4.6. I recommend to choose seller which already has a couple of completed orders for your product with a good feedback. Read feedback page for the product, it often has a photo, some extended info and sometimes you can find information about product issues.
About 90% of orders on aliexpress are good. About 3% of issues can be quickly solved by seller in private communication even with no needs to involve aliexpress. About 1% is not solved at all, even with aliexpress team. And the rest 6% of issues are solved with help of aliexpress team, sometimes as partial refund and sometimes as full refund.
Note, if you choose seller with a lot of already completed orders and good feedback it doesn't guarantee that your order will be ok, but in case of issue it will increase chance that your issue will be solved.