Find a cliff or somewhere high where it can't reach you, then pump arrows or darts into it. To be extra careful have a flyer nearby to escape if it climbs up.

More Rex Taming & KO Tips