The author's purpose for including the parable about those who are punished for trying to leave their station is to:
B. Foreshadow that the pearl is going to bring Kino conflicts.
This parable serves to underscore the themes of social class and the consequences of ambition, hinting at the struggles Kino will face as he attempts to change his social status through the pearl.