A serial child abuser who tried to silence a young victim with threatening messages has been jailed for 22 years.