The Pitch Perfect star, 44, spoke to BBC Radio and was asked if women can get away with different jokes compared to men.
"I've definitely said a lot of edgy jokes, and said them sometimes in very public places like the Baftas", Wilson said.
"Yeah I don't think there's a different standard, it's more this thing about - if you are something then now you're allowed to joke about it.
"So say, if you are overweight, you can say jokes. But if you're not (you can't) that's kind of what's currently happening. So it's not really gendered."
Reflecting on whether this is a good or bad thing, the Australian comedy star said: "I think that's hard. It's going into this territory of like saying, 'Well, only straight actors can play straight roles, and gay actors can play gay roles', which I think is total nonsense.
"I think you should be able to play any role that you want. But I always think, in comedy, your job is to always flirt with that line of what's acceptable.
"Sometimes you do step over it, but at the end of the day, you are trying to entertain people.
"If people are just always being safe and protective, you're not going to get good comedy from that."
The Bridesmaids actor also discussed her relationship with fiancee Ramona Agruma, who she proposed to in Disneyland in 2023.
On coming out to their respective families, Wilson said she was lucky as even though she came from a "very conservative" background, her grandparents in their 90s are "just so chilled and cool with it".
"Ramona's family, not as much. Her mum has luckily come around now, her father still doesn't talk to her, but we're hoping that will change."
Wilson said she had been in the process of using a surrogate to have a child when she met Agruma - having to tell her just three months into their relationship.
"I'd already been planning to use a surrogate to have a child and I'd done several rounds of IVF and I had one embryo transfer, which sadly didn't work," Wilson said.
"Almost right at meeting Ramona, I was planning on the second embryo transfer and I was like, 'Babe I don't know how to tell you this, but I'm going to have a child kind of around November'.
"Ramona just looked at me and said, 'Well, I love you and if you have a child, I'm going to love your child exactly the same way'."
The TV presenter and actor added that she hoped her daughter Royce, born in November 2022, had her work ethic and always feels loved.