Jeremiah 29:11 - For I know the thoughts that I think toward you, saith the LORD, thoughts of peace, and not of evil, to give you an expected end.
The same way God that God has plans for us is the same way that the devil has plans for us. The only difference is that the plans that God has for us are of good just like the scripture above states. But the one that the devil has for us is the opposite; that is of evil. It is important that we know the difference so that we don't mix it up.
The reason why people blame God when bad things happen is as a result of ignorance. When bad things occur in the lives of people it can only be mean one thing, that is the work of the devil. But the good news is that God is smarter than the devil. So what God does when we are often faced with these situations is to use the devil's plan and turn it for our own good.
Romans 8:28 - And we know that all things work together for good to them that love God, to them who are the called according to his purpose.
As long as you are on earth, troubles are bound to come your way, but God's plan for your life is to use the very problem that the enemy intends for your destruction and turn it for your own good. The enemies may strike first but God has the final say.
Everything God has done is for our profiting
The elements of evil came when the devil came in