In Disneyland the crocodiles are animatronic, so not a threat.
It is common sense to inform yourself with local knowledge if you intend to enter crocodile habitat. At least some of the locals will know enough to give you good advice. Really knowledgeable locals could also give advice about things to look out for, warning signs etc. In one of the most recent attacks, the area was well known as the local habitat of a large aggressive crocodile and the area was best avoided.
Human arrogance can be a risk factor. People tend to see themselves as the apex predator, not as prey. It is a hard way to learn that's not always the case.