Here "sleeps with a beast" is a euphemism that means someone has sex with an animal. This can be stated in active form. AT: "You must certainly kill anyone who has sex with an animal" (See: [[rc://en/ta/man/translate/figs-euphemism]] and [[rc://en/ta/man/translate/figs-activepassive]])