The genuine game won't harm your computer. The risk comes from downloading the wrong thing — fake builds labelled with nonsense version numbers like "1.2.3.4.5.6.7 0.37" are the giveaway.
Those are repackaged downloads, and they're a common way to distribute adware or worse. Real Minecraft versions follow a clean numbering pattern, and anything that doesn't is not from Mojang.
Get it from the official site or a legitimate storefront and there's nothing to worry about. The machine can't be hurt by playing the game.