The Israel–Palestine conflict is a complex and highly contested issue, with a long history of violence and bloodshed. Both sides have been accused of committing human rights abuses, and there is no easy answer to the question of whether or not Israel is committing a criminal offense by hitting civilian areas in Gaza.
However, it is important to note that international law prohibits the intentional targeting of civilians in armed conflict. The Geneva Conventions, which are the foundational treaties of international humanitarian law, state that "civilians shall enjoy the protection afforded by this Convention, unless and for such time as they take a direct part in the hostilities." This means that civilians are generally protected from attack, even in areas where fighting is taking place.
There are a number of exceptions to this general rule, but these exceptions are narrowly construed and must be applied on a case-by-case basis. For example, civilians may lose their protected status if they are directly participating in hostilities, or if they are located within a military objective. However, even in these cases, international law requires attackers to take all feasible precautions to avoid harming civilians.
In the current conflict in Gaza, there have been a number of reports of civilians being killed and injured in Israeli airstrikes. These reports have not been independently verified, but if they are accurate, they would raise serious concerns about Israel's compliance with international law.
It is important to note that international law is complex and there is no single answer to the question of whether or not Israel is committing a criminal offense by hitting civilian areas in Gaza. The facts of each case must be carefully considered in order to determine whether or not international law has been violated. However, the general rule is that civilians are protected from attack, even in areas where fighting is taking place.