It's best to do a stave tame if you taming one in a dangerous place. So all your resources are not lost.

More Ankylosaurus Taming & KO Tips