Learner's definition of RESTRAIN
to prevent (a person or animal) from doing something
He could not restrain the dog from attacking.
I wanted to have another serving, but I somehow restrained myself. = I somehow restrained myself from having another serving.
He could restrain himself no longer.
to prevent (a person or animal) from moving by using physical force
to keep (something) under control