It means in a random, fortuitous, uncertain, casual, dangerous orrried way. Dangerously, riskably, casually, fortuitously.
Randomly, by chance