Education 'in danger' from litigious trend