It is thus legal to pester by begging (7)
I believe the answer is:
solicit
'pester by begging' is the definition.
I can't judge whether this defines the answer.
'it is thus legal' is the wordplay.
'it is thus' becomes 'so' (synonyms).
'legal' becomes 'licit' (similar in meaning).
'so'+'licit'='SOLICIT'
'to' is the link.
Can you help me to learn more?
(Other definitions for solicit that I've seen before include "Accost - request" , "Request, induce" , "Ask earnestly about colitis" , "Try to obtain (something) from someone" , "Ask earnestly,seek to obtain" .)