In this paper, using direct and inverse images for fractional stochastic tangent sets, weestablish the deterministic necessary and sufficient conditions which control that thesolution of a given stochastic differential equation driven by the fractional Brownianmotion evolves in some particular sets K. As a consequence, a comparisontheorem is obtained.