To toe the line means to follow the rules, and in this context the living are following the rules.
Consider the statement "Maybe they think the living will follow the rules once they realize there won't be a second life waiting for them.". Is the statement "Maybe they think the living will toe the line once they realize there won't be a second life waiting for them." false? Yes/no/unknown