The word "times" is an idiom for "things happening." Alternate translation: "When good things happen ... when bad things happen" (See: [[rc://en/ta/man/translate/figs-idiom]])
The phrase "side by side" is an idiom that means "this one" and "this one." Alternate translation: "both to exist" or "there to be both good and bad" (See: [[rc://en/ta/man/translate/figs-idiom]])