If we’re praising positive actions as a way of discouraging misbehavior, this is unlikely to be effective for long. Even when it works, we can’t really say the child is now "behaving himself"; it would be more accurate to say the praise is behaving him.