How do you know the difference between spiritual attack and the Lord’s protection?

Some people may give too much credit to the devil – that all bad things are directly the devil’s fault. This week’s question is if something bad happens, how do you discern the difference between spiritual warfare and the Lord’s discipline or protection?