This may have something to do with your pregnancy. Everyone knows that crocodiles are very powerful and terrible creatures. Your dream can be explained as follows: the crocodile in the dream has something to do with your unborn baby. Crocodiles reflect that your baby will be healthy after birth and productive when he grows up. But there is one bad thing. You said from the beginning that crocodiles would eat you. When your baby is born, you can pay attention to the baby's birth date. It's possible, but it's only possible. That is to say, your baby's life is hard, which means it will hurt people, whether it's your current parents or your future lover.
These are just speculations. You shouldn't have psychological pressure. This dream can also be explained as: I am tired, nervous or depressed at work recently. Sometimes dreams exaggerate some things in reality and make people feel scared. Dreams have faith, and it doesn't matter if you don't believe them. So learn to relax and don't put too much pressure on yourself. I hope you and your unborn baby are healthy.