A warning has been issued that people risk prosecution if they use unlicensed waste collectors, as this can lead to fly-tipping.