Perilously has 2 different meanings across 1 category:
Adverb
in a dangerous manner
"he came dangerously close to falling off the ledge"
In a perilous manner.