Even when pattern matching is your only tool and you have seen only positive outcomes of humans beings shot out of cannons, you will still not want to shoot people out of cannons. Because it matches so many negative patterns. You learned that explosions are bad, cannons are bad, weapons in general are bad, loud bangs are bad, people flying through the air are bad etc.
So this is not an example of pattern matching being insufficient to avoid danger.
So this is not an example of pattern matching being insufficient to avoid danger.