Are there rules that prevent chaos in our world?
My scientific education tells me that:


The world is as it is and behaves as it does (and is observed by people).
People (scientists) observe that behaviour and then invent rules which describe (or define) the behaviour.


Note that:


Those rules are not necessarily "pre-determined" (instead they're invented by people to describe the behaviour-of-the-world which they observe)
The world doesn't obey the rules, instead the rules are chosen to describe the world.


A Buddhist word for those rules is Dharma or Dhamma.

The Buddha is praised for his Dhamma, i.e. the Buddha discovered and explained a useful set of "rules" which we use to understand the world.