G530az root problems

N

Nexus bandit

Samsung grand prime 530az on5.1, when I root it with king root it works great until its rebooted at which time it comes to a secure fail kernel screen and a long security error screen which says it will cost to fix it..I restored it using kies of course but I want to root this phone..I'm trying not to trip Knox..kingroot does root it..what can I do to get past this and keep root?