The answer to 'how to prevent cricket' is to take several steps to make your home less attractive to crickets. First, seal any cracks and crevices around your home's exterior where crickets could enter, using caulk or other sealants. This removes potential entry points and nesting sites. Second, eliminate sources of moisture and standing water around your home, as crickets are attracted to damp environments. Check for and fix any leaks, and ensure proper drainage around your home's foundation. Third, maintain good sanitation by regularly cleaning up food crumbs and spills, and storing food in airtight containers. This removes potential food sources that could attract crickets. Finally, use outdoor lighting sparingly at night, as bright lights can draw in crickets. Consider using motion-sensor or yellow 'bug lights' instead.
If you continue to have issues with crickets despite these preventive measures, it may be best to contact a professional pest control technician, who can inspect your home and provide more targeted treatment options.