A Minnesota woman charged with fatally shooting her boyfriend in a failed YouTube video stunt foreshadowed the event when she tweeted that it would be "one of the most dangerous videos ever."

Monalisa Perez, of Halstad, Minn., was charged Wednesday with second-degree manslaughter in the death of Pedro Ruiz III. Perez, who is pregnant, was released on $7,000 US bail.

The charge carries a maximum penalty of 10 years in prison.

A photo of Monalisa Perez released by Northwest Regional Corrections Center after she was charged with second-degree manslaughter. (Northwest Regional Corrections Center/Associated Press)

According to the criminal complaint filed by Norman County Sheriff Jeremy Thornton, the 19-year-old Perez told investigators that Ruiz wanted to make a video of her shooting a bullet into a book he was holding against his chest.

She says she fired from about a foot away.

Hours before the Tuesday night shooting, Perez tweeted: "Me and Pedro are probably going to shoot one of the most dangerous videos ever. HIS idea not MINE."

Me and Pedro are probably going to shoot one of the most dangerous videos ever😳😳 HIS idea not MINE🙈 —@MonalisaPerez5

The complaint says Ruiz set up one camera on the back of a vehicle and another camera on a ladder nearby.

Ruiz's aunt, Lisa Primeau, told the Star-Tribune that her nephew was always chasing a thrill and "putting a dangerous twist on everything he did." Primeau said that included jumping into a swimming pool from the top of a house.

Many of the videos on Perez's YouTube channel are of her and Ruiz playing pranks and performing stunts. The most recent was posted the morning before the shooting. It's titled "Doing Scary Stunts at the Fair, Part I" and shows the couple attending a fair last week.

DOING SCARY STUNTS AT THE FAIR | PART 1 <a href="https://t.co/Et7vpukwmr">https://t.co/Et7vpukwmr</a> via <a href="https://twitter.com/YouTube">@YouTube</a> —@MonalisaPerez5

"Imagine when we have 300,000 subscribers," Perez says during the video.

Primeau said Ruiz liked guns and had "plenty" of them. Authorities say Perez used a .50-calibre Desert Eagle pistol in the stunt, which is described by retailer Cabela's in an online ad as "one of the world's most powerful semi-automatic handguns."

Ruiz died from a single gunshot wound to the chest.