When things are going well, be grateful for your blessings, and in times of adversity consider this: God has made both of them, so that we cannot predict with confidence what the future holds.
In contrast, the fruit of the Spirit is love, joy, peace, patience, kindness, generosity, faithfulness, gentleness, and self-control. There is no law against such things.