The U.S. Supreme Court on Monday scolded the U.S. Court of Appeals for the Fifth Circuit for overreaching in separate rulings against a Black Lives Matter protest leader and a prisoner who was confined in what the justices described as “particularly egregious” cell conditions.

In the case Mckesson v. Doe, the court said in an unsigned ruling that the Fifth Circuit “should not have ventured into so uncertain an area of tort law” when it ruled that a jury could find DeRay Mckesson, a Black Lives Matter organizer of a demonstration in Louisiana, was liable for injuries to a police officer by an unknown individual.