to toe the line, to behave properly
Depois que meu marido me perdoou da traição, preciso andar na linha.
After my husband forgave me for cheating, I need to walk the line.
The most-cited interpretation is military: soldiers marching in formation must stay in a straight line or face punishment. A parallel English expression 'toe the line' is usually traced to British Parliamentary procedure (members kept their toes behind a floor line during debates).
Source: Phrases.org.uk — toe the line.
Falando's Idiom Trainer teaches you to recognize idiom meanings and create sentences using them, so you can speak like a Brazilian.