A rogue, rascal, or small-scale troublemaker.
A spailpín, (Anglicised as spailpeen or spalpeen) or "wandering landless labourer" derived from the Irish spailp, meaning "turn, spell, bout." [i]. Landless migratory seasonal agricultural labourers in the late eighteenth/ early 19th centuries were employed on Scottish farms. The spailpíni were precursors of the navvies in Scotland [ii]
The term came to be used as a pejorative by native Scots.
References:
[i] https://en.wikipedia.org/wiki/Spailp%C3%ADn (accessed 03May21)
[ii] Professor Ian Russell, The Elphinstone Institute, University of Aberdeen - personal communication.
304, 534