If we try to do bad actions why doesn’t God stop us?
(i) Waheguru does stop us from doing bad things or wrong things. He has His own ways; we have to understand them. While jumping you may sprain your ankle. It gets swollen and it gives you much pain. That is Waheguru’s (nature’s) way of forcing rest on us. when you get sick, you become weak and do not wish to move about; rather you feel like remaining in bed. That is what Waheguru wants you to do to get into good health.
The same principle works on a larger scale too. If a king is inefficient or unjust the people replace him (if need be, by violence). Maybe a neighbouring king will attack him, defeat him and take over his kingdom for better management. The world goes on and nature continues to act according to its principles. We may or may not observe them being implemented by the Great Governor, Waheguru.
(ii) Sometimes we do not know the greater plan of Waheguru and we may not be clear about the part assigned to us. We are supposed to perform our duty with the competency given to us. The world is a huge drama conducted and directed by Waheguru. In a drama an actor is required to act according to the will of the director, and not according to his own liking.
In a drama, the son of a wealthy person was assigned the job of a beggar. He acted like a beggar even though he knew very well that he is not a beggar. He was doing the duty assigned to him by the director of the drama. He won an award for good acting. Similarly, in this world, the director, Waheguru, has assigned different kinds of duties to different people. Waheguru may make us rich, poor, a scholar, a common man, handsome or handicapped. But the situation in which He puts us, should not matter while we are doing the duty assigned to us. Wherever we are placed, we should do our duty honestly, sincerely, and devotedly, being neither jealous of others nor suffering from any ego.