There are many human laws that prohibit man to
take some actions. There are also God’s Laws that if they are
broken, a man has committed an immoral act. An immoral act is
not necessarily an illegal act. An illegal act is not always
immoral!

There can be many examples of this conundrum.
For example, fighting for freedom from the yoke of a tyrant might be
illegal in the environment that the tyrant has power over but it is
not immoral.