The safest way to obtain Grand Theft Auto games for PC is through official channels. The older, non-3D GTA titles can be found on Rockstar's official website, and the modern entries are sold through legitimate storefronts.
Buying from official sources protects you from malware and ensures you get a clean, supported copy of the game.