This requires training ("pre-training" or guidance from a more omniscient-esque knowledge agent), trial-and-error testing, and feedback to attain mastery (accurate and precise pattern-matching).
Think of it analogous to genetic programming of the olden days:
1) Create an arbitrary model (code that results in answers of "is it safe?" "is it helpful?" etc.)
2) Test it
3) Find parts that work and parts that are broken
4) Mutate mostly the broken parts
5) Repeat until funding runs out
It's better to fail-safe being afraid of something if you don't understand it because life is fragile and many things could eat you/hurt you. And, young ones don't have that same experiences or defenses of full-grown, mature (-ish? because they're parents) adults.