If it gets near you, it will attack and take 1 of your items so I recommend killing it fast

More Pegomastax Encountering Tips