The actor, who played villain Lyutsifer Safin in the latest James Bond movie, had to film one sequence while standing on top of an ice lake as it melted.
"It was melting quite quickly," Rami tells Smallzy's "Celebrity Small Talk" podcast. "There was only a certain number of people, a capacity that we could have and we're shooting on film, which is already kind of nerve-wracking, because you can't reset and go back and play another moment."
Rami admits he felt increasingly anxious about the scene, "Just have to get through it and to add to that tension and anxiety you're thinking, 'Am I going to fall through this at any point? Am I actually going to die on No Time To Die?' " he adds.
During the interview, Rami also insisted that he has nothing in common with his on-screen character in the Bond movie. He shared, "With Safin I thought, 'Okay, I'll find a way to really sympathise and empathise with this guy and make the audience fall in love with him perhaps, because they can empathise with his pain.' "
"But there's something so dark and evil and sinister about him that I just had to remove myself from him," Rami explained further. "This is not part of my DNA thankfully, and I can just transform into somebody who I don't have to pull anything from and just create something that is exciting to bring to [Daniel Craig] and 007."