The expression "you are at risk of" is very often followed by a disease or a word such as developing or contracting. The expression "you are in danger of" is usually followed by a gerund: - losing your home - failing - having your identity stolen
If you live in Taipei, you are in danger of being injured or killed during an earthquake.