There is a formula for even taking risks:
Plan ahead and evaluate different outcomes. Then, take a risk on your desired outcome with the knowledge of the different probabilities.
Consider how to react when something unplanned happens and be prepared.
Then, taking risks is within the boundaries of wisdom and it might even not be a risk at all, but a carefully designed procedure.