I would say think of it this way, you can pkhex offline to hearts content but if you make a overpowered pokemon with crazy moves ect keep it offline. Online use legit caught pokemon in battles and dont trade those op pokemon. I used pkhex for mew and mewtwo but deleted it. Want to do the legit way i guess. Haha

You will not get banned as long as PKHeX says the pokemon are legalWe don't have a lot of people for answer so I pick one risk
Gonna tell you if its work
thanks and actually I have no problemYou will not get banned as long as PKHeX says the pokemon are legal