Due to the presence of competing interactions, the square-well-linear fluid can exhibit either liquid-vapor equilibrium (macrophase separation) or clustering (microphase separation). Here we address the issue of determining the boundary between these two regimes, i.e., the Lifshitz point, expressed in terms of a relationship between the parameters of the model. To this aim, we carry out Monte Carlo simulations to compute the structure factor of the fluid, whose behavior at low wave vectors accurately captures the tendency of the fluid to form aggregates or, alternatively, to phase separate. Specifically, for a number of different combinations of attraction and repulsion ranges, we make the system go across the Lifshitz point by increasing the strength of the repulsion. We use simulation results to benchmark the performance of two theories of fluids, namely, the hypernetted chain (HNC) equationand the analytically solvable random phase approximation (RPA); in particular, the RPA theory is applied with two different prescriptions as for the direct correlation function inside the core. Overall, the HNC theory proves to be an appropriate tool to characterize the fluid structure and the low-wave-vector behavior of the structure factor is consistent with the threshold between microphase and macrophase separation established through simulation. The structural predictions of the RPA theory turn out to be less accurate, but this theory offers the advantage of providing an analytical expression of the Lifshitz point. Compared to simulation, both RPA schemes predict a Lifshitz point that falls within the macrophase-separation region of parameters: in the best case, barriers roughly twice higher than predicted are required to attain clustering conditions.