Two parts to this answer: First, I am playing around with some statistics on assaults and murders in the US National Parks, and I am coming to the conclusion that the most dangerous animal in the outdoors is homo sapiens, who will be attracted by your fire.
Second, maybe 20 years ago I read a speculation by a respected anthropologist, the gist of which was that fire was a necessary precursor to whatever the precursor of speech was. (Fire appeared maybe 700,000 years ago, and speech in the modern sense maybe 50,000 years ago, with large error bars on both.) His point -- it may have been Leakey, but I can't remember -- was that if you are sitting in the dark, you are quiet, because you are listening -- listening for the approach of something that will eat you, literally. Fire kept these animals away and enabled communal jabber.
On this second point, remember the scene in 2001, A Space Odyssey, where the anthropoids are sitting huddled together at night, scared, and listening, with their eyes darting in all directions. That scene would have been very different if they had had a fire.
The two parts of this answer may seem contradictory. If animals are plentiful and enemy homo scarce, then the fire is a deterrent. If animals are scarce and enemy homo plentiful, then the fire is not wise.