Under what circumstances can freedom of speech be restricted according to the principle of "clear and present danger"?

a. When the speech is critical of the government
b. When the speech is considered offensive to some individuals
c. When the speech is expresses through non-violent actions
d. When the speech poses an immediate threat to public safety

d. When the speech poses an immediate threat to public safety