It's saying how like someone who hangs out with the wise, will also be wise. But, if they hang out with fools, they'll become a fool themselves. I do not know what play you are referring to, however.
government is laws and leaders and practices every citizen is required to follow. religion is a choice where some choose to join and follow the cultural laws and rules and leaders.