Use Tranq Darts and get it stuck up against the wall, if you want block it in with walls so it can't run then put spikes around it when it's down to deter predators

More Direbear Taming & KO Tips