with the possibility of harming yourself / sb / sth
at risk to yourself / sb / sth
with the possibility of harming yourself / sb / sth
He dived in to save the dog at considerable risk to his own life.
Definitions from the Oxford Advanced Learner's Dictionary, 9th edition