If you have a lot of dinos with you, have them on follow and aggro the stego while they're on passive. Stego cant get close enough to hit you and it wont hit your dinos.

More Stegosaurus Taming & KO Tips