You can use tools to clone your pokémon, I think the other cloning glitches have been patched..
And no it will not get you banned as the pokémon still count as legit (if done correctly)
Glitches in general might damage your game/file so it's safer to use special tools for that. If you don't have any of those, you can ask a friend who does!