Shaver, "an acute cheat," is in Grose, 'Dictionary of the vulgar tongue', which puts it in use in the late 18th c.
To shave, meaning to remove a portion, is probably as old.
These are meanings that easily suggest themselves, they could be much older.