Hamlet is told that he is committing a crime against both heaven and God with his excessive griefing, and it shows that he is vulnerable and weak-minded.