You cannot divide an IN clause like this. For example:
declare @test table
( column1 integer, column2 integer, column3 integer)
insert into @test
select 1, 2, 1 union all
select 2, 3, 2 union all
select 3, 3, 1 union all
select 4, 2, 2 union all
select 5, 2, 5 union all
select 6, 5, 1
select column1, column2, column3
-- , column1%3, column1%2
from @test
where column3 = 1
and case when column1%3=1 -- condition 1
and column1%2=0 -- condition 2
and column2 in (2,3) then 1
when ( column1%3<>1 or column1%2=1 )
and column2 = 5 then 1
end = 1
/* -------- Output --------
column1 column2 column3
----------- ----------- -----------
6 5 1
*/