Avoiding legal guardianship through preventive measures