Want to buy an Android tv box

Hi guys, Lately I've been obsessed with the idea of buying an android TV box from AliExpress. Last night I was watching some reviews on YouTube when I found a popular video of a guy explaining how these are full of malware.

I decided to look into this further and found this forum. I saw that this topic has already been partially covered.

My question is, what can I do to just buy a tv box, check if the one that I buy has a malware, and if it has one, just doesn't allow it to spread in my network and in other devices connected?