All perfect praise be to Allaah, The Lord of the Worlds. I testify that there is none worthy of worship except Allaah, and that Muhammad, sallallaahu ʻalayhi wa sallam, is His slave and Messenger.
Firstly, you should know that many of the scholars who maintained that attending the congregational prayer is obligatory do not maintain that it must be held at the mosque; rather, it may be held anywhere. Also, based on the scholarly view suggesting the obligation of attending the congregational prayer at the mosque, we have underlined in Fatwa 89364 that it is only obligatory on the person who hears the Athaan without the aid of loud speakers, and that it is not obligatory on someone who is so far from the mosque that he cannot hear the Athaan.
Even if you could hear the Athaan, the fact that you are not safe when going to the mosque is itself a valid excuse not to attend the congregational prayer at the mosque. Scholars held that fear for one's safety is a valid excuse for not attending the Friday prayer and congregational prayers.
Hence, if the situation is as described, then there is no harm if you perform Fajr prayer at home. You are advised to perform it in congregation with the members of your household in order to attain the reward of praying in congregation.
Allaah Knows best.