Context, mostly?
Though they are slightly different: "Sam hurt themself" not "Sam hurt themselves".
Though they are slightly different: "Sam hurt themself" not "Sam hurt themselves".
(to borrow some regional distinctions addressing the same lack in the english second person)