Among men, the word apostasy has those two understandings.
Whether it means to depart FROM God or to revolt AGAINST God, the outcome is the same. It reflects one's internal self will to not have God to rule over them any longer.
In essence, I perceive that it is the blasphemy against the Holy Spirit of God, that was freely given to a person who had faith in the shed blood of Christ for the forgiveness of sin (was sanctified), but has now rejected the gift and has considered it to be an unholy thing. Mat. 12:31
Heb. 10
23 Let us hold fast the profession of our faith without wavering; (for he is faithful that promised;)
24 And let us consider one another to provoke unto love and to good works:
25 Not forsaking the assembling of ourselves together, as the manner of some is; but exhorting one another: and so much the more, as ye see the day approaching.
26 For if we sin wilfully** after that we have received the knowledge of the truth, there remaineth no more sacrifice for sins,
27 But a certain fearful looking for of judgment and fiery indignation, which shall devour the adversaries.
** Note: that sin which is never forgiven in this world, or in the world to come.
28 He that despised Moses' law died without mercy under two or three witnesses:
29 Of how much sorer punishment, suppose ye, shall he be thought worthy, who hath trodden under foot the Son of God, and hath counted the blood of the covenant, wherewith HE WAS sanctified, an unholy thing, and hath done despite unto the Spirit of grace?