word forming element indicating "oneself," also "automatic," from Old English use of self (pron.) in compounds, such as selfbana "suicide," selflice "self-love, pride, vanity, egotism," selfwill "free will." Middle English had self-witte "one's own knowledge and intelligence" (early 15c.).
OED counts 13 such compounds in Old English. Middle English Compendium lists four, counting the self-will group as a whole. It re-emerges as a living word-forming element mid-16c., "probably to a great extent by imitation or reminiscence of Greek compounds in (auto-)," and formed a great many words in the pamphlet disputes of the 17c.
"action of holding back (action or motion); that which restrains, a check, hindrance," early 15c., restreinte, from Old French restreinte, noun use of fem. past participle of restraindre (see restrain).
Specifically in reference to refractory prisoners or dangerous lunatics by 1829. The sense of "reserve, repression of extravagance in manner or style" is from c. 1600. Phrase restraint of trade is by 1630s.
Wherever thought is wholly wanting, or the power to act or forbear according to the direction of thought ; there necessity takes place. This, in an agent capable of volition, when the beginning or continuation of any action is contrary to that preference of his mind, is called compulsion ; when the hindering or stopping any action is contrary to his volition, it is called restraint. [Locke, "Of Human Understanding"]
<a href="https://www.etymonline.com/word/self-restraint">Etymology of self-restraint by etymonline</a>
Harper, D. (n.d.). Etymology of self-restraint. Online Etymology Dictionary. Retrieved $(datetime), from https://www.etymonline.com/word/self-restraint