The best way to get Need for Speed: Black Edition is to buy it through a legitimate retailer or a trusted digital storefront. It's a classic title, and legitimate copies are still easy to track down for PC.
Avoiding unofficial download sources is worth it, since pirated copies often come bundled with malware and won't receive any support or updates.