Some problems don’t have easy simple solutions. Any answer will have some outside cases.
If a schizophrenic parent has in the past harmed someone, should a court ignore this when determining custody. It is unfair. If you err on being too lenient some people will be harmed. If you err on being stringent some people will be harmed.
Complex problem cannot be solved with ideology and maxims. All solutions will fail some people sometimes.