In any kind of freelancing you have to have a contract and you have to be careful what you say (especially in any form of writing, not just letters but email, chat, text, etc).
It doesn't have to be the most elaborate contract. I know others will disapprove but I wrote mine myself.
Fortunately it was never tested in court but, at least once, reviewing the terms at a time of disagreement protected both sides from embarking on a costly and painful legal process.