It is unsafe if you don't know where to buy from (Recommend buying only from official source)
Hardware wallets are not like our casual wallets, they require levels of technical expertise for a safe set up, most importantly during customized settings.
If you don't know much about Hardware just stick with the usual online wallets that are open source and strictly secure your seed phrase.
Computers having malware can also infiltrate during transactions resulting in loss of coins, double check before spending.