if is possible of course everybody is allowed to do h or she thinks be necessary
If, in the end, it is not possible, then of course everybody is allowed to do what he or she thinks to be necessary.
If, is possible, of course everybody is allowed to do he or she thinks be necessary.