toe the line
To be very careful to do just what you are supposed to do; obey the rules and do your duties.
The new teacher will make Joe toe the line.
Bill's father is strict with him and he has to toe the mark.
Compare: WALK THE CHALK.