Grammar: 'dangerous to' or 'dangerous for'
Solution 1:
Both prepositions are correct with dangerous. You are restricted to use for when you continue the sentence with a to-infinitive clause:
It would be dangerous for you to stay here.
This is a danger to you: This sentence doesn't use danger as a verb, but as a noun. This example is also correct.
Solution 2:
Both 'dangerous for' and 'dangerous to' are correct.This has been mentioned in Longman Dictionary of Contemporary English.Even as a noun both 'danger to' and 'danger for' are correct although most prefer to use 'danger to'. Both of them have been proved correct by rigorous and thorough analysis of British National Corpus, Corpus of American Contemporary English and Google Books Corpora.