This is a play on words of "best behavior". When someone is on their best behavior, they're well mannered. Pest sounds like best, but pest means to annoy. So, this joke is stating that some kids are on their most annoying behavior.
Some childen are often on their pest behavior .