Knock them out and put them in a tent. While it is unconscious grab some berries and put it in your inventory, make sure there isn’t anything else for it to steal to tame it faster. When is is awake let it steal the berries from you and eventually you will have a tamed Pegomastax! Also make sure your tent is closed.

More Pegomastax Taming & KO Tips