This will prevent it from being deleted when you remove your serverles project. Note, that if you do this and want to re-create a dev environment you’ll have delete the table manually after removal.
The other option is to manage your DDB Tables in a separate stack to your Serverless service (This sounds like what you want).
You could even use Serverless for this separate stack - just create a serverless.yml without any function definitions, and just use the resources section to define your DDB table (all thanks to a PR from @johncmckim).