This is a hypothetical situation, not reality. Yet.
Alice, Bob and Carol are neighbours. They voted in a referendum. Bob is a thoughtful chap who likes to be helpful and do the best for his community, so voted Remain. Carol said she voted Remain too. Bob doesn't know how Alice voted but suspects that she voted Leave, despite widespread opinion that this would lead to increased poverty, disruption to trade, and a less tolerant society.
The worst comes to pass and there are many job losses and great disruption to trade, which leads to food shortages.
Alice comes to Bob and asks for help because she has no food. Normally Bob would share all he had with a neighbour in distress. But Bob knows that he will run short soon too, and he is already helping Carol. Morally, would it be right to ask Alice how she voted?
How can Bob assess the correctness of his actions? Should he save his food for the neighbour he believes acted properly? Or should he also support a neighbour whose action brought calamity on them all, even though that might risk his own life, and Carol's?
Would anything change if Bob knew that Alice's children were going hungry too?
I looked at many questions here that referenced actions and consequences but found nothing that helped me understand this.