That's not entirely true. If you for instance "cook" meat at 100 degrees you'd end up with more bacteria than you started with. You do need to cook at a temperature that is hot enough to actually kill the bacteria. It's not a numbers game at all, it's understanding a little microbiology.
Nothing is completely safe, but food poisoning is also not fun.