If you download emulators from a reputable source, they are perfectly safe. It is always a great idea to check if the download comes from a reliable source before you download it. There should be no harm done to your iPhone or PC by most Pokémon emulators. Aside from being perfectly legal, emulators are also completely free to use.