As a general rule of thumb, avoid mugging people.

As an even bigger tip, avoid trying to mug people who could definitely cause you some harm.

One man found this out hard way as he tried to rob UFC fighter Polyana Viana, who had been waiting for an Uber outside her apartment building in Jacarepagua, Rio de Janeiro when the would-be mugger approached her.

When the thief approached and threatened to take her phone, the Brazilian strawweight took matters into her own hands, using her MMA skills to knock the man down and keep him immobilised until the police arrived.

Viana, who reportedly remained calm throughout her frightening encounter, told MMA Junkie:

“When he saw I saw him, he sat next to me. He asked me the time, I said it, and I saw he wasn’t going to leave. So I already moved to put my cell phone in my waist.

And then he said, ‘Give me the phone. Don’t try to react, because I’m armed’. Then he put his hand over [a gun], but I realised it was too soft.

He was really close to me. So I thought, ‘If it’s a gun, he won’t have time to draw it.’ So I stood up. I threw two punches and a kick.

He fell, then I caught him in a rear-naked choke. Then I sat him down in the same place we were before and said, ‘Now we’ll wait for the police’.”

Due to the soft feel of the gun, Polyana thought that it was actually just a toy gun, or possibly a knife.

She later found out the ‘weapon’ was a mere cardboard cutout in the shape of a gun.

Polyana added:

“I was fine, I was fine because he didn’t even react after. Since he took the punches very quickly, I think he was scared. So he didn’t react anymore. He told me to let him go, like ‘I just asked for the time’.

I said, ‘Asked for the time my ass,’ because he saw I was very angry. I said I wouldn’t let go and that I was going to call the police.

He said, ‘Call the police, then’ because he was scared I was going to beat him up more.”

Polyana said she kept his arm immobilised in a kimura-like position until police officers arrived.

UFC President Dana White tweeted the following image with the caption:

“On the left is @Polyana_VianaDF, one of our @UFC fighters and on the right is the guy who tried to rob her #badf*ckingidea [sic]”

Bad f*cking idea indeed.

Images via Twitter/Getty/Instagram/UFC