Etymology
The origin of the noun is uncertain; etymology 1, noun sense 2 (“person that traps or tricks another”), the original sense, was probably thieves’ cant and may be derived from trap (noun or verb). Etymology 1, noun sense 1 (“act of entrapping or tricking; thing which entraps or tricks”) is from the verb.
The verb is derived from etymology 1, noun sense 2 of the noun.