If there were demographic restrictions on which legislators could speak or vote on which bills, it would impede the function of our democratic system. Representatives are not supposed to represent their own views, they are supposed to represent their constituents' views. If they are properly doing their job, it doesn't matter what demographic the representative is from, they should be taking into account the views of all their constituents and voting based on what the area that elected them feels.
If politicians were not allowed to create laws that affected other demographics no laws would ever be passed. However, as with the given example about abortion rights, they need to make more of an effort to include people from the demographic that will be most affected. There have been many meetings about women's rights that include no women at all and that is disgraceful. But most laws affect multiple demographics. If we elected a more diverse group of politicians than that would be the best solution of all.