The phrase "toe the line" is used to mean obeying the rules or conforming to expectations. There are several synonyms for this phrase that can be used to convey the same meaning. These include "follow the rules," "abide by regulations," "keep to the standards," "adhere to the guidelines," and "conform to the norms." All of these expressions refer to the act of complying with established systems or protocols. Depending on the context, they can be more or less appropriate, but they all capture the idea of adhering to prescribed expectations. So, give some thought to which synonym is best to use in the situation, to convey your intended meaning more precisely.