I only read this in Russian translation, but the original was in English.
It was either a small book (novelette?) or long story.
Somewhat oldish (even the translation was definitely from before 1980s, so the work may be more than that).
The plot was about a crew of a spaceship, who ended up on a planet that had some sort of space pirates/gangsters who robbed the ships which came to trade with them.
The ship managed to survive the gangsters in the end.
The overall impression was that this was kind of juvenile SciFi adventure type story.