If the issue moves from status "Status A" to "Status B" and the user needs to return to "Status A" but that should be only possible from another status let's say: "Status C"
Configuration
Add a Logical condition in a transition that goes from Status B to Status A. These statuses symbolize the previous status and the current status.
Expression
Add the following expression to enable the transition only if the previous status of the issue was not Status B.
%{issue.status.previous}!="Status B"
If you need to prevent an issue from ever returning to the same status again, you should use the following expression instead.