The Law of Conditionality states that things come into existence through an infinitely regressive series of causes and conditions. Remove the conditions, and whatever would have arisen won’t. This applies to both good things and bad. The implication is that if you want good things to happen, create the conditions for them. If you don’t want bad things to happen, don’t create the conditions for them.
You’ll find stuff like this on my blog, where I write about my thoughts on various aspects of the Middle Way.