Her record as a prosecutor navigating both paths has left her open to criticism that she either betrayed liberal ideals or prioritized them over law and order.