This depends on the exact local legislation.
What you paid for the shares (price) typically has absolutely no influence. Price is what you pay for, value is what you get. The present fair value of the company is $10, and you are getting a profit of $3 over the fair value (although a loss of $7 considering what you paid for). I'd say this is pretty ok deal: compensation is 30% over the fair value.
However, you may have the option of refusing to sell. What happens might depend on the local legislation, but I assume if enough many people decide to sell and the buyers have obtained 90%, 95% or similar amount of outstanding shares, they are forced by the legislation to buy the rest.
Also, consider of the possibility that the company vanishes from stock exchange lists, so that you can no longer sell your shares should you want to.
So, all I'm saying is that you should consider taking the offer. I would. You will find from the stock market some pretty decent deals, other companies, for the money you receive from the sale of the stocks.