"Wherefore, the Lord God gave unto man that he should act for himself. Wherefore, man could not act for himself save it should be that he was enticed by one another."2 Nephi 2:16
Heavenly father gave us freedom to do what we wanted to do but we couldn't do it unless we were helped by someone else.
"And Joshua said unto hi son, Achan, I pray the glory of the Lord God of Israel, and make confession unto him, and tell me now what thou hast done. Hide it not from me." Joshua 7:19