Proverbs 19:3
The foolishness of man undermines his way (ruining whatever he undertakes); then his heart is resentful and rages against the Lord (for, being a fool, he blames the Lord instead of himself).
God is perfect, and there is no fault in Him. Man, however, needs a redeemer to wipe away sin. The best thing we can do to avoid the pitfalls of life is to confess when we make mistakes and get back on track with God. It does not help to shift the blame to God and not be accountable for the problem we created. It will only get worse.