In this world you can never please everyone. There are many ways to politely saying “No”.
You can start by sayingassess your situation and say something accordingly like “Thanks for the opportunity but I’m afraid I’m fully booked” or “This type of project isn’t my strong suit” etc. I'm not talking about giving a false reason here, you can assess your situation and say something accordingly. And if you find it appropriate recommend someone else for the job. In
In these type of situations “No” is always better than a reluctant “Yes”.
You could then thank them again for thinking of you, that way you won’t be burning any bridges either.