A safe home is the sum of many factors. Take good care of your apartment, as well as the shared facilities of the building for your part. Taking care of fire safety, locking doors and windows and using electrical equipment properly will prevent many types of damage.
Some risks, such as burglary or property-wide damage, cannot be completely prevented by your own actions. Therefore, you should insure your property with home insurance.