I heard that investing in bitcoin is dangerous. How true is this?

No, you are wrong. this is the wrong mindset. bitcoin is not harmful, but risky. this is what many beginners know about. because the value of bitcoin is not easy to set and tend to fluctuate. try to find lots of insights about what bitcoin is. here a lot of reading that makes you understand.