(Parts of this answer are unsourced, but it is too long to fit as a comment)
There are some assumptions you are making about evolution that you need to correct, and then you will understand how evolution can explain such behavior.
According to the theory of evolution, a law or thing happens only if it's not harmful to the organism itself as well as others.
There are 3 problems with this statement:
- You say "a law or thing happens only if...": Here you are assuming that evolution is a deterministic process. It is not. Evolution is a random process that makes some outcomes more likely than others, but it doesn't have any certain outcomes and for a given scenario more than one outcome is possible.
- You say: "..if it's not harmful to the organism itself...": As others have pointed out, this is not the case. Evolution is about the propagation of genetic material. If individuals within a species harming themselves or harming others will improve the chances of passing on genes to the next generation, then evolution will encourage this behavior. Consider some species of insects where the females eat the males after mating, since this will improve the future chances of the eggs she carries. Another example is of male lions killing the cubs of previous males once they take control of the pride to increase their own chances at reproduction.
- You say "not harmful to the organism itself as well as others": Again this is not the case. Evolution propagates genetic material based on natural selection, i.e. survival of the fittest. That means that the fittest members of a species will survive and pass on their genetic traits to the next generation even at the expense of other members of the species. The giraffe with the tallest neck will mate the most because it has access to more food than the other giraffes, and the genetic trait of very tall neck will get passed on to the next generation. --> Note here that the principle of natural selection seems to actually encourage selfish and amoral behavior, see the concept of Social Darwinism.
Is all this fair in the eyes of evolution?
The concept of fairness is a moral concept specific to humans. Evolution operates independently of human concepts.
If by "fair in the eyes of evolution" you mean "can things like crime, war, racism, etc...., be reconciled with the theory of evolution" then the answer is yes they can. It is perfectly possible that all of these things provided evolutionary advantages to the species which developed them. For example a state of constant war would insure that only the strongest members of a species survive, eliminating the genetic traits of weaker individuals. In environments were food is scarce theft and crime would have developed as efficient means of obtaining food, etc....
Is there any other gentle way nature would have thought to bring good to universe other than this?
Yes there is. While some species, including homo sapiens might have developed various selfish behaviors as the best way to propagate their genes, other species have developed altruism and cooperation as the best way to propagate. Think of various hive insects: Worker bees and ants do not reproduce at all, only the queens reproduce in such species. Yet the workers do their best for the survival of the hive. This is a case of evolution leading to completely selfless and altruistic behavior.
You say "...bring good to universe other than this?": Like fairness, goodness is a purely human concept. Evolution is a neutral process that doesn't care about good or bad, and as I have shown earlier it can lead to either selfish behavior or altruistic behavior, whichever strategy leads to the most reproduction.
One can argue that this is exactly what makes human special: We are the only species that can see beyond the evolutionary imperatives, and lead our lives according to a higher purpose. But only because we can go against evolution, instead of following it.