If you're in the swamp taming or killing stuff, these guys will probably annoy you and if you are if your tame, then I suggest using a flamethrower or a sword

More Meganeura Encountering Tips